我在app中使用React + Redux + RoR。我必须做社交登录。对于客户端,我使用davezuko/react-redux-starter-kit,它位于localhost:3000上。从客户端到服务器的所有请求都没有问题(PUT、GET、POST)。),我有一个错误:
Failed to load https://api.twitter.com/oauth/authenticate?oauth_token=xxxxx: No
我有一个托管在heroku上的REST API。它由Express、NodeJS和MongoDB(mongoose as orm和MongoDB地图集)组成。我正在使用MERN堆栈。(Reason: CORS header ‘Access-Control-Allow-Origin’ does not match ‘http://localhost:3000/’)
但是我这样设置cors请求标头包含Access-Control-Allow-Origin ht