|
|
@@ -23,7 +23,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.style24.admin.support.interceptor.TsaDefaultInterceptor;
|
|
|
import com.style24.admin.support.interceptor.TsaPosInterceptor;
|
|
|
import com.style24.admin.support.readable.TsaRequestFilter;
|
|
|
-import com.style24.core.support.filter.TscXssServletFilter;
|
|
|
import com.style24.core.support.text.TscHtmlCharacterEscapes;
|
|
|
|
|
|
import com.gagaframework.web.rest.client.GagaRequestStringTrim;
|
|
|
@@ -83,21 +82,21 @@ public class TsaWebMvcConfig implements WebMvcConfigurer {
|
|
|
return bean;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * XSS(Cross Site Script) Prevention Filter
|
|
|
- * form data에 적용
|
|
|
- * @return
|
|
|
- */
|
|
|
- @SuppressWarnings({"rawtypes", "unchecked"})
|
|
|
- @Bean
|
|
|
- public FilterRegistrationBean xssFilterRegistrationBean() {
|
|
|
- FilterRegistrationBean bean = new FilterRegistrationBean();
|
|
|
-// bean.setFilter(new GagaXssServletFilter());
|
|
|
- bean.setFilter(new TscXssServletFilter());
|
|
|
- bean.setOrder(2);
|
|
|
- bean.addUrlPatterns("/*");
|
|
|
- return bean;
|
|
|
- }
|
|
|
+// /**
|
|
|
+// * XSS(Cross Site Script) Prevention Filter
|
|
|
+// * form data에 적용
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @SuppressWarnings({"rawtypes", "unchecked"})
|
|
|
+// @Bean
|
|
|
+// public FilterRegistrationBean xssFilterRegistrationBean() {
|
|
|
+// FilterRegistrationBean bean = new FilterRegistrationBean();
|
|
|
+//// bean.setFilter(new GagaXssServletFilter());
|
|
|
+// bean.setFilter(new TscXssServletFilter());
|
|
|
+// bean.setOrder(2);
|
|
|
+// bean.addUrlPatterns("/*");
|
|
|
+// return bean;
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* Multipart Filter
|