Explorar el Código

屏蔽跨域测试代码

yaobo hace 7 años
padre
commit
15b5c7a222
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/main/java/cn/efunbox/audio/config/CorsFilter.java

+ 1 - 1
src/main/java/cn/efunbox/audio/config/CorsFilter.java

@@ -25,7 +25,7 @@ public class CorsFilter implements Filter {
 
         HttpServletRequest reqs = (HttpServletRequest) req;
 
-        System.out.println("access from "+reqs.getHeader("Origin"));
+//        System.out.println("access from "+reqs.getHeader("Origin"));
         response.setHeader("Access-Control-Allow-Origin",reqs.getHeader("Origin"));
         response.setHeader("Access-Control-Allow-Credentials", "true");
         response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");