Apps Scripts Oauth2 Authorization Using Gapi From Inside Htmlservice
I'm trying to be OAuth2-authorized by using the gapi library from inside an HtmlService project. I've got my CLIENT_ID from the console and I've set up the 'Authorized Javascript O
Solution 1:
To get the origin you need launch your webapp. Right click and click Inspect
. This should open Devtools. Click on the Elements
tab. Look for the iframe with the id="sandboxFrame". The source the that iframe in your webapp origin. It will look like:
When you add it to your credentials just add the domain part leaving off the endpoint.
https://n-rilyfaex6q3..iimkn7ufgvlphhi2..l3l73y-0lu-script.googleusercontent.com
Post a Comment for "Apps Scripts Oauth2 Authorization Using Gapi From Inside Htmlservice"