I've uploaded my Google Apps Script to webflow and it's only working for Google Chrome browser. For other browsers I get this message (I tried with Safari and Brave):
This is how I render my index.html
file from the script:
function doGet() {
return HtmlService.createTemplateFromFile('index')
.evaluate()
.setSandboxMode(HtmlService.SandboxMode.IFRAME)
.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
}
I already saw this question but it isn't working with the NATIVE sandbox either: ReferenceError: google is not defined - Google Apps script error in Mozilla firefox.
When publishing web-apps with access: "anyone", it is needed for the end user to be logged in. Otherwise, the user is redirected to Google login page. Google's login page does not allow itself to be iframed. Since you're logged into Chrome, the web app isn't redirected to Google's login page and this error doesn't appear in Chrome.