0

I developed an Apps Script Web App that uses some Google Apis (drive, calendar, etc.).

I wrote Terms and Privacy Policy and requested Google to approve it, and they keep bugging me that I need to remove, from "Authorized Javascript origins", anything that is not hosted on my real TLD's (own domains).

The problem is I need to put on the authorized origins some https://n-blablabla-0lu-script.googleusercontent.com URL's, because those are the origins of the Apps Script itself, where the LOGIN button is.

Basically when someone enters my app, if it is not yet logged in, I show in the app itself a Login button, and once the user logs in, I request the permissions. This is pretty common, and since the Apps Script runs in google platform, it has google on its URL/origin.

I spent ~2 weeks with Google Support trying to explain them that I cant remove those authorized origins of https://n-blablabla-0lu-script.googleusercontent.com, otherwise, I do get this:

idpiframe_initialization_failed: Not a valid origin for the client The Google Sign-in library requires that the domain registered in the Google Developers Console matches the domain being used to host the web page. Ensure that the origin you registered matches the URL in the browser.


the Web App is embedded on a Google Sites (new) iframe

3
  • Have you tried using "script.google.com" in JavaScript origins? Commented Jul 24, 2020 at 14:41
  • 1
    How is this a on-topic question? Do you expect us to explain to you how you should explain other departments? Consider posting to workplace.stackexchange.com If you put your own login in gas-web-app, you need that origin and probably a couple more too Commented Jul 24, 2020 at 15:11
  • I’m voting to close this question because it is not a programming question. Commented Jul 24, 2020 at 15:13

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.