Reputation: 759
I have created a Google Apps Script in Google Drive. Although the script was created in Drive, it has a URL that looks like:
https://script.google.com/macros/s/blah-blah-blah
As a result, attempts to stuff the output from the script into a web page hosted on Google Drive fail as an attempt to access a cross-origin resource. Any way I can get around this problem? Thanks for any input.
... doug
Upvotes: 0
Views: 533
Reputation: 19835
you could publish the gas as anonymous content script and use ajax to get the data (redirects enabled) and use regular client+side js to display it on your googledrive html page. Maybe its not working because you havent published as anonymous? Ive done ajax to a gas content script from a googledrive.com hosted page and it worked fine.
Upvotes: 1