|
@ -37,6 +37,11 @@ public class CORSFilter implements Filter {
|
|
|
// response.setHeader("Access-Control-Expose-Headers", "*");
|
|
|
response.setHeader("Access-Control-Allow-Methods", "*");
|
|
|
response.setHeader("Access-Control-Max-Age", "3600");
|
|
|
if(request.getRequestURI().contains("dump")){
|
|
|
response.setStatus(HttpServletResponse.SC_FORBIDDEN);
|
|
|
logger.info("SC_FORBIDDEN=======================");
|
|
|
return;
|
|
|
}
|
|
|
//response.setHeader("Access-Control-Allow-Credentials", "true");
|
|
|
if ("OPTIONS".equals(request.getMethod())) {
|
|
|
response.setStatus(HttpServletResponse.SC_OK);
|