0
以下是我的预先要求。Aurelia Fetch CORS不适用于Chrome或Firefox的本地主机
我已经设置了访问控制允许来源,但没有浏览器就可以看到它,因此后续请求失败
这是我则得到了失败的请求
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/api/v1.0/currencies/2. (Reason: CORS header 'Access-Control-Allow-Origin' missing).
你能告诉我们'fetch'代码和'cors'代码在哪里设置标题? – Randy