2014-12-03 151 views
0

我使用OAuth.io从Chrome扩展程序向Twitter进行身份验证。来自Chrome扩展程序的跨浏览器请求与OAuth.io

我有以下内容添加到我的manifest.json

"externally_connectable": { 
     "matches": ["https://oauth.io/*"] 
    }, 

我添加了Gmail的域在Oauth.io应用:

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.

任何想法解决这个问题?

回答

2

我说这对于manifest.json,认为这样做是为了现在:

"permissions": [ 
    "https://oauth.io/*" 
    ], 
相关问题