|
@@ -30,9 +30,8 @@ public class RestCorsFilter implements Filter {
|
30
|
if(allowedOrigins.contains(originHeader)){
|
30
|
if(allowedOrigins.contains(originHeader)){
|
31
|
response.setHeader("Access-Control-Allow-Origin",originHeader);
|
31
|
response.setHeader("Access-Control-Allow-Origin",originHeader);
|
32
|
}else{
|
32
|
}else{
|
33
|
- response.setHeader("Access-Control-Allow-Origin","https://***.***.com");
|
|
|
|
|
33
|
+ response.setHeader("Access-Control-Allow-Origin","http://10.152.72.7");
|
34
|
}
|
34
|
}
|
35
|
- response.setHeader("Access-Control-Allow-Origin", "http://10.152.72.7"); // 可写成受信任的站点
|
|
|
36
|
response.setHeader("Access-Control-Allow-Credentials","true");
|
35
|
response.setHeader("Access-Control-Allow-Credentials","true");
|
37
|
response.setHeader("Access-Control-Allow-Methods", "POST, GET,DELETE,PUT");
|
36
|
response.setHeader("Access-Control-Allow-Methods", "POST, GET,DELETE,PUT");
|
38
|
response.setHeader("Access-Control-Max-Age", "31536000");
|
37
|
response.setHeader("Access-Control-Max-Age", "31536000");
|