gpt4 book ai didi

javascript - Google Drive API 跨域框架错误

转载 作者:行者123 更新时间:2023-12-02 17:24:35 28 4
gpt4 key购买 nike

我正在关注文档 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 控制台,但在设置中找不到任何内容。

最佳答案

该错误来自 LastPass 扩展。如果您禁用扩展(或在隐身模式下测试),您将不会收到该错误。请参阅:

关于javascript - Google Drive API 跨域框架错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23597232/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com