I'm trying to integrate a google script app deployed as a web app in a Google Site. The embedding feature works well and all seems good at first. But for some reason links don't work in the embedded view. I can't find any specific topics about this.
Google Script web app can be embedded everywhere I tried except in Google Site. And Google Site can embed every site that allow it except web app from google script.
EDIT (2)
Turn out the problem can be resolved pretty quickly :
Open https://sites.google.com and create a new site
Insert an "embed" choose the "embed code" option and copy paste this code :
<!DOCTYPE html> <html> <body> <div> <a href="http://google.com">Click Me!</a> </div> </body> </html>
Now testing on preview or once the site publish the link can't be clicked
setSandboxMode
for.setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL);
– Thoroughpaced_blank
work? and is it enough for you? Theallow-top-navigation
sandbox attribute is missing from Google sites embed feature. Therefore , I believe_top
won't work. – Virustarget="_self"
even if it suppose to be implicite and it seem to work :) – Hartzel