CORS响应返回右头,但响应仍为403

时间:2017-02-27 09:23:57

标签: rest http cors

我正在提出CORS请求,

响应包含正确的标题:

Access-Control-Allow-Credentials →true
Access-Control-Allow-Headers →Origin, authorization, accept, content-type, x-requested-with
Access-Control-Allow-Methods →GET, HEAD, POST, PUT, DELETE, TRACE, OPTIONS
Access-Control-Allow-Origin →http://localhost:4200
Access-Control-Max-Age →3600
Cache-Control →no-store, no-cache, must-revalidate, max-age=0
Content-Length →0
Date →Mon, 27 Feb 2017 09:20:02 GMT
X-Application-Context →application:development

但是响应仍然是403。

要添加到响应标头的任何内容吗?

由于

0 个答案:

没有答案