Answer the question
In order to leave comments, you need to log in
Why does doGet not work correctly if I log in under a different domain?
Hello!
I have a script on Google Apps Script which is launched by a link.
When you follow a link to a script, as you know, authorization is required.
If the link is followed by a person logged in through %any-email%@gmail.com, then everything works fine. The script works as programmed and eventually returns an HtmlOutput.
But if the link is followed by a person logged in through some other domain, then HtmlOutput is not displayed. An error appears (see picture). The script itself works out everything as it should - it makes the necessary edits to the necessary sheets.
Moreover, sometimes this output works as it should, and sometimes it doesn’t. Patterns are not known.
Has anyone experienced this? How did you deal with it?
Answer the question
In order to leave comments, you need to log in
This application must be authorized by the system administrator. Well, or vice versa, the system administrator forbade the installation of any applications, except for those that he allowed.
Contact the administrator of the Google Workspace whose domain is having issues.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question