我正在使用OAuth.io从Chrome扩展向Twitter进行身份验证。
我将以下内容添加到我的manifest.json中
"externally_connectable": {
"matches": ["https://oauth.io/*"]
},我在Oauth.io中将Gmail域名添加到应用程序中:

我得到弹出窗口并授权,然后我得到以下错误:
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.
有什么办法解决这个问题吗?
发布于 2014-12-04 06:15:23
我将这段代码添加到了manifest.json中,我想现在就完成了:
"permissions": [
"https://oauth.io/*"
],https://stackoverflow.com/questions/27282540
复制相似问题