Commit fb3a6398 authored by 王业雄's avatar 王业雄

test

parent a56f35e5
......@@ -45,7 +45,7 @@ public class CrosFilter implements Filter {
String allowedHeaders = "Origin, No-Cache, x-auth-token, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type,Authorization";
response.setHeader("Access-Control-Allow-Headers", allowedHeaders);
response.setHeader("Access-Control-Max-Age", "3600");
log.info("doFilter | 前端请求过滤,请求方法{}",request.getMethod());
log.info("doFilter | 前端请求过滤,请求方法{},请求路径{}",request.getMethod(),request.getRequestURI());
if (DISALLOWED_METHOD.contains(request.getMethod())) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment