角2 + jee7(野生蝇)

时间:2016-11-03 09:38:58

标签: angular authorization wildfly jaas

这是我对WF的回应

HTTP/1.1 200 OK
Expires: 0
Cache-Control: no-cache, no-store, must-revalidate
X-Powered-By: Undertow/1
Set-Cookie: JSESSIONID=IQCjYqZ4Vy06q072fdIR6a41.sk-za-04702; path=/prototype-rest
Access-Control-Allow-Headers: accept, authorization, content-type, x-requested-with
Server: WildFly/8
Pragma: no-cache
Date: Thu, 03 Nov 2016 09:33:07 GMT
Connection: keep-alive
Access- Control-Allow-Origin: *
Access-Control-Allow-Credentials: true
Content-Length: 0
Access-Control-Allow-Methods: GET, POST, OPTIONS, PUT
Access-Control-Max-Age: 3600

angular 2表示此响应为错误 - >我已经将所有可能的角色添加到WF,仍然不知道问题出在哪里。

1 个答案:

答案 0 :(得分:2)

显然问题是Access- Control-Allow-Origin: *标题中的空格。

把它放在这里..好吧..所以这个问题可以得到答案:)