Deadly CORS when http://localhost is the origin

后端 未结 9 1319
迷失自我
迷失自我 2020-11-22 00:54

I am stuck with this CORS problem, even though I set the server (nginx/node.js) with the appropriate headers.

I can see in Chrome Network pane -> Response Headers:

9条回答
  •  北荒
    北荒 (楼主)
    2020-11-22 01:33

    Quick and dirty Chrome extension fix:

    Moesif Orign & CORS Changer

    However, Chrome does support cross-origin requests from localhost. Make sure to add a header for Access-Control-Allow-Origin for localhost.

提交回复
热议问题