App Maker - Drive Picker 小部件 - 如果嵌入 Google 站点,则为空的白色对话框
App Maker - Drive Picker widget - Empty, white dialog if embedded in Google Site
我们正在使用云端硬盘选择器小部件来 select 用户云端硬盘中的文件。
该应用被配置为 运行 作为用户。
运行在 https://scripts.google.com/... URL 时应用程序正常运行;如果我们将应用程序嵌入到新 Google 站点实例 (google.com URL) 中,驱动器选择器仅显示一个空的白色对话框。
我们在 Chrome 的控制台中有一些错误:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://docs.google.com') does not match the recipient window's origin [...]
Invalid 'X-Frame-Options' header encountered when loading [...] 'ALLOW-FROM https://script.google.com' is not a recognized directive. The header will be ignored.
Uncaught Error: Incorrect origin value. Please set it to - (window.location.protocol + '//' + window.location.host) of the top-most page at new JJ (13808338-picker_modularized_opc.js:975) at _createPicker (13808338-picker_modularized_opc.js:977) at HTMLDocument.
Firefox 说
Load denied by X-Frame-Options: https://script.google.com/ does not permit framing by https://sites.google.com/s/[...]/edit?authuser=0.
我们在 Drive Picker 的文档中找不到任何关于限制的线索。
谢谢。
我在我的裸域上 运行 App Maker,并且选择器小部件可以正常工作。
- 在应用程序设置中:选中允许嵌入应用程序
- 在 Drive Picker 的 onPickerInit 中:
pickerBuilder.setOrigin("https://example.com/");
我们正在使用云端硬盘选择器小部件来 select 用户云端硬盘中的文件。
该应用被配置为 运行 作为用户。
运行在 https://scripts.google.com/... URL 时应用程序正常运行;如果我们将应用程序嵌入到新 Google 站点实例 (google.com URL) 中,驱动器选择器仅显示一个空的白色对话框。
我们在 Chrome 的控制台中有一些错误:
Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://docs.google.com') does not match the recipient window's origin [...]
Invalid 'X-Frame-Options' header encountered when loading [...] 'ALLOW-FROM https://script.google.com' is not a recognized directive. The header will be ignored.
Uncaught Error: Incorrect origin value. Please set it to - (window.location.protocol + '//' + window.location.host) of the top-most page at new JJ (13808338-picker_modularized_opc.js:975) at _createPicker (13808338-picker_modularized_opc.js:977) at HTMLDocument.
Firefox 说
Load denied by X-Frame-Options: https://script.google.com/ does not permit framing by https://sites.google.com/s/[...]/edit?authuser=0.
我们在 Drive Picker 的文档中找不到任何关于限制的线索。
谢谢。
我在我的裸域上 运行 App Maker,并且选择器小部件可以正常工作。
- 在应用程序设置中:选中允许嵌入应用程序
- 在 Drive Picker 的 onPickerInit 中:
pickerBuilder.setOrigin("https://example.com/");