Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7946221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:05:15+00:00 2026-06-04T01:05:15+00:00

There’s X-Frame-Options: SAMEORIGIN header preventing the Apps Script from rendering in a page not

  • 0

There’s “X-Frame-Options: SAMEORIGIN” header preventing the Apps Script from rendering in a page not from sites.google.com (or docs.google.com)

How can I create a python proxy to work from an IFrame. I suspect the proxy needs to replace the SAMEORIGIN tag and work with ajax style POST commands.
This is new ground for me, never needed to setup a proxy before.

Example Google Apps Script page:
https://docs.google.com/macros/exec?service=AKfycbyrbgVS39Hf-RHYVPbnCKzf_uVaD0sGeFSKEqyRIw

This proxy solutions looks close:
How do I get my simple twisted proxy to work?

I found instructions for setting up a proxy on App Engine, but this fails with ajax style POST commands:
http://www.labnol.org/internet/setup-proxy-server/12890/

This is a known Google Apps Script issue #546 and #522. About 1 year old with about 100 people looking for a solution.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T01:05:16+00:00Added an answer on June 4, 2026 at 1:05 am

    The bs2grproxy works with a few small changes.
    I posted the solution here:
    http://code.google.com/p/google-apps-script-issues/issues/detail?id=546#c104

    The changes:

    In file bs2grproxy.py below line 48, “raise Exception(‘Unsupported …” insert:

            scm = 'https'
    

    below line 134, “raise Exception(‘Requested …” insert:

                if fetched:
                    if resp.headers.get('Content-Type', '').find('html') >= 0:
                        resp.content = resp.content + '<style type="text/css"> .warning-panel {display: none;} </style>'
                        resp.headers['x-frame-options'] = 'IGNORE'
                        logging.info("warning-panel hidden and x-frame-options reset")
    

    You may also need to change the proxy time out in bs2grproxy.py, like this:

    resp = urlfetch.fetch(new_path, self.request.body, method, newHeaders, False, False, 30)
    

    Eddy.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There seem to be very different opinions about using transactions for reading from a
There's always skepticism from non-programmers when honest developers learn the techniques of black hat
There are now so many ways to write windows apps, win32, MFC, ATL, .NET,
There's a dropdown displaying 1-10 from where the user selects the number of textboxes
There are 3 different ways to get data out of a BLOB column from
There is a class that's a fully fledged UIViewController and when that page loads
There are many tutorials that talk about deleting index.php from the url. But I
There is a constant I'm using from the iOS SDK. I printed out the
There is previous little on the google on this subject other than people asking
There are so many different ways to include JavaScript in a html page. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.