2016-11-03 60 views
0

這是從WF角2 + jee7(wildfly)

我的響應
 
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 

角2表示此效應初探作爲錯誤 - >我已經添加的所有可能的CORS到WF,仍然不知道從哪裏是問題。

+0

這裏有一個空間'訪問 - 控制允許Origin' – PierreDuc

+0

非常感謝!!!!!!!! !!!!!!!!!!!! ...解決 – eriskooo

+0

很高興我能幫忙! – PierreDuc

回答

2

顯然問題在於Access- Control-Allow-Origin: *標題中的空格。

只是把它在這裏..好..所以這個問題可以有一個答案:)