0
votes

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
1
Google removed web page hosting from Google Drive, so this can't be reproduced anymore.Rubén

1 Answers

1
votes

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.