【发布时间】:2021-10-22 05:43:26
【问题描述】:
错误: 我正在使用 heroku 来测试我的应用程序。后端(nodejs-express)前端用react写
进入网站,接收数据时出错
如何处理
Access to fetch at 'my-web_api/allCity' from origin 'my-web_api' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
【问题讨论】:
标签: node.js reactjs heroku cors