在连接到Google Drive API时,我的本地主机出现了控制台错误,但我已经在脚本中配置的选择器成功显示了我的驱动器内容:
执行“postMessage”失败:“目标起源('https://docs.google.com')与接收窗口的起源('http://localhost:8000')不匹配。
加载 'https://docs.google.com/picker?protocol=gadgets&origin=http%3A%2F%2Flocalho…2photos%22))&rpctoken=yxxydsx40r21&rpcService=2dngvfb4tj9x&thirdParty=true' 时遇到无效的 'X-Frame-Options' 标头:'ALLOW-FROM http://localhost:8000' 不是一个被认可的指令。该标头将被忽略。
我应该忽略这个错误还是会给我带来麻烦?
google.picker.PickerBuilder().setOrigin('http://example.com')
也无法解决。 - Amir Astaneh