【发布时间】:2018-08-24 11:06:48
【问题描述】:
我有一个使用 create-react-app 创建的反应应用程序。我想向另一个网址发送请求:
fetch('anotherUrl')
.then(response => response.json())
.then(res => console.log(res))
在那之后我遇到了 cors 问题。如何设置中间件为 null 这个错误?
【问题讨论】:
-
How to allow CORS?的可能重复