Google Drive API跨源框架错误

时间:2014-05-11 19:55:44

标签: javascript google-drive-realtime-api

我按照文档here运行示例javascript应用。我设置了clientId并将这两个文件上传到我的服务器,但是当我进入index.html页面时,我在开发人员工具控制台中出现了这个错误:

Error in event handler for (unknown): Blocked a frame with origin     "https://accounts.google.com" from accessing a cross-origin frame.
Stack trace: Error: Blocked a frame with origin "https://accounts.google.com" from accessing a cross-origin frame.
at Error (native)
at setupffoverrides (chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/onloadwff.js:151:86)
at checkgenpwfillforms (chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/onloadwff.js:152:33)
at receiveBG (chrome-extension://hdokiejnpimakedhajhdlcegeplioahd/onloadwff.js:130:210)
at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
at EventImpl.dispatchToListener (extensions::event_bindings:395:22)
at Function.target.(anonymous function) (extensions::SafeBuiltins:19:14)
at publicClass.(anonymous function) [as dispatchToListener] (extensions::utils:69:26)
at EventImpl.dispatch_ (extensions::event_bindings:378:35)
at EventImpl.dispatch (extensions::event_bindings:401:17) 

此外,当我点击"你必须授权"按钮我收到一个包含此错误的对话框:

401. That’s an error.
Error: invalid_client
No registered origin

如何设置原点?我查看了API控制台,但无法在设置中找到任何内容。

1 个答案:

答案 0 :(得分:2)

该错误来自LastPass扩展程序。如果您停用扩展程序(或以隐身模式进行测试),则不会出现该错误。参见: