google-apps-scriptweb-applicationswarningsgoogle-apps-for-education

How to remove Warning "This application was created by another user, not by Google" in Google Apps for Education


We set up a Google Apps Script-based Intranet in our organization, which benefits from Google Apps for Education. We've been using for months:

Everything worked ok up to now.

However today (July 7th. 2017) the HTML pages to be shown to the intranet users include an inconvenient Warning added by Google at the top claiming that This application was created by another user, not by Google., which is really annoying. I understand that this warning must be shown when the Script is created by an unkown users. But in my case, I (the admin) is offering the Script to the users of my organization.

The conclusion in other past threads is that going Google Business or Education everything gets fixed. Unfortunately, it's not true anymore.

Does anybody know how to avoid such warning in Google Apps Script for the users of our domain that run our own coded scripts?


Solution

  • if you have a website just embed the google script into an iframe in your website just ensure in your doGet function set return to html.setXframeOptionsMode(HtmlService, XFrameOptionsMode.ALLOWALL)

    function doGet() {
      var html = HtmlService.createHtmlOutputFromFile("index");
      return html.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
    }
    

    Then in you website

    <iframe scr="PASTE YOU GOO0GLE WEB APP LINK HERE"></iframe>
    

    you can use css to resize the iframe as you like, i actually learnt this when watching a youtube video , in the ending of the video the instructor embed the google web app which he had created in the video in his website enter link description here

    He also left a link in the description of the video to His github page where he pasted the source code