我刚刚尝试了很多样本Google Apps Script scripts
但我总是收到错误:
"Error while parsing the 'sandbox' attribute: 'allow-modals', 'allow-popups-to-escape-sandbox' are invalid sandbox flags."
我曾尝试在 Mac OS 上使用 Chrome 和 Safari,在 Win 8 上使用 Chrome。
最佳答案
可以安全地忽略此错误,脚本将继续正常运行。这是两个已在 Chrome 46(当前稳定版本)中实现的新标志。如果您在不支持它们的浏览器中进行测试,您将看到该错误(这实际上只是一个警告)。allow-modals
标志是必需的,因为默认情况下,Chrome 将 block modal dialogs within a sandboxed iframe .添加此标志允许模态在您的应用程序脚本中工作。allow-popups-to-escape-sandbox
flag 有点相似;其目的是permit new windows to be created without them being subject to the same sandboxing restrictions .
关于google-apps-script - 如何修复 HtmlService 的 "Error while parsing the ' 沙箱“属性”标志错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33531905/