html.setSandboxMode(HtmlService.SandboxMode.IFRAME)

334 views
Skip to first unread message

Andrew Apell

unread,
Aug 27, 2019, 3:23:44 PM8/27/19
to google-apps-sc...@googlegroups.com
I think this emperor has no clothes:
I read this blog post claiming that html.setSandboxMode(HtmlService.SandboxMode.IFRAME) would work magic for the HTML service but so far I have not seen any difference.
Is there s specific case where this works or special code we need to add to activate it?

ChiefChippy2 is awesome

unread,
Aug 27, 2019, 4:09:49 PM8/27/19
to Google Apps Script Community
The blog post is outdated. As mentioned in the Google Apps Script Reference ( https://developers.google.com/apps-script/reference/html/sandbox-mode ), The NATIVE and EMULATED modes were deprecated on October 13, 2015 and both are now sunset. Only IFRAME mode is now supported.
So iFrame mode is now the default and the only mode available.
Reply all
Reply to author
Forward
0 new messages