Search code examples
google-apps-scriptgoogle-visualizationgoogle-sites

Google Apps Script not showing up when signed out


I am trying to put an interactive map from GeoCharts on my website using Google Apps Script. The maps show up when I am signed into my Google account but they do not show up when I am signed off. How can I fix this?

Here is the doGet I use and prate is an HTML file in the project. I then deploy the project as a web app and choose

Execute the app as: 'Me'

Who has access to the app: "Anyone'

function doGet() {
 return HtmlService.createHtmlOutputFromFile('prate').setSandboxMode(HtmlService.SandboxMode.IFRAME);
 }

I don't get an error on the page when I am logged out, it just does not show up. Here is the link to the page: https://sites.google.com/site/christinegbraun/data


Solution

  • Make sure you did add in your website the /exec not the /dev
    Also make sure everyone can access the app by choosing in settings

    Who has access to the app: anyone, even anonymous