sgjj 6 лет назад
Родитель
Сommit
7161b213a5
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/main/java/net/mingsoft/config/WebConfig.java

+ 2 - 1
src/main/java/net/mingsoft/config/WebConfig.java

@@ -150,7 +150,8 @@ public class WebConfig implements WebMvcConfigurer {
         FilterRegistrationBean registration = new FilterRegistrationBean(xssFilter);
         xssFilter.excludes.add(".*file/upload.do");
         xssFilter.excludes.add(".*/jsp/editor.do");
-        registration.addUrlPatterns("/**");
+        xssFilter.excludes.add("/");
+        registration.addUrlPatterns("/*");
         return registration;
     }