0

我正在使用 OAuth.io 从 Chrome 扩展程序向 Twitter 进行身份验证。

我已将以下内容添加到我的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.

有什么办法解决这个问题吗?

4

1 回答 1

2

我将它添加到 manifest.json 并认为现在已经完成了:

  "permissions": [
    "https://oauth.io/*"
  ],
于 2014-12-03T22:15:22.703 回答