Axios having CORS issue

后端 未结 6 1937
温柔的废话
温柔的废话 2020-11-30 05:38

I added proxy in package.json and it worked great, but after npm run build the CORS issue has resurfaced again, does anyone know how to deal with CORS issue after npm run bu

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 06:04

    CORS issue can be simply resolved by following this:

    Create a new shortcut of Google Chrome(update browser installation path accordingly) with following value:

    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir="D:\chrome\temp"
    

提交回复
热议问题