PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, April 27, 2022

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

 April 27, 2022     google-apps-for-education, google-apps-script, warnings     No comments   

Issue

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:

  • doGet()
  • HtmlService.createTemplate(...)
  • Publish > Deploy as Web App and setting:
    1. "Execute the app as:" admin@ourdomain.com
    2. "Who has access to the app:" Any member of ourdomain.com

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



Answered By - Victor dedon
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing