我正在使用 OAuth.io 从 Chrome 扩展程序向 Twitter 进行身份验证。
我已将以下内容添加到我的manifest.json
:
"externally_connectable": {
"matches": ["https://oauth.io/*"]
},
我将 Gmail 域添加到 Oauth.io 中的应用程序:
我得到弹出窗口并授权,然后我得到以下错误:
XMLHttpRequest cannot load https://oauth.io/request/twitter/%2Fme. The 'Access-Control-Allow-Origin' header has a value 'https://mail.google.com' that is not equal to the supplied origin. Origin 'chrome-extension://chpcljbkkhhgnjpibemapkkioceikfmp' is therefore not allowed access.
有什么办法解决这个问题吗?