|
@@ -40,7 +40,7 @@ public class OriginFilter implements Filter {
|
|
|
// 表明它允许跨域请求包含xxx头
|
|
|
response.setHeader("Access-Control-Allow-Headers",
|
|
|
"Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires,userAgent,User-Agent,version, " +
|
|
|
- " Content-Type, content-type,X-E4M-With,Authorization,token,authorization");
|
|
|
+ " Content-Type, content-type,X-E4M-With,Authorization,token,authorization,share");
|
|
|
response.setHeader("Access-Control-Allow-Credentials", "true");
|
|
|
if (request.getMethod().equals("OPTIONS")) {
|
|
|
response.setStatus(200);
|