A way I found to prevent users from accessing web app from script.google.com/[...]/exec url

54 views
Skip to first unread message

ChiefChippy2 is awesome

unread,
Apr 19, 2019, 4:25:06 PM4/19/19
to Google Apps Script Community
For some reason putting this inside a script tag works :
if(window.parent.parent===window.top){
//Redirect users to custom domain ( the page where you embbeded the web app)
}

Also, anyone came up with good anti-clickjacking techniques for embedded web apps ? I have a few ideas but they don't work as well.

IAlex

unread,
May 1, 2019, 3:54:32 AM5/1/19
to Google Apps Script Community
Is there any example?

I'm using Angular & Vue routes for browser navigation events.

Don't forget <base target="_top"> for success
Reply all
Reply to author
Forward
0 new messages