|
|
@@ -18,8 +18,7 @@ import org.springframework.web.multipart.support.MultipartFilter;
|
|
|
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
|
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
|
|
|
|
|
|
-import com.gagaframework.web.core.filter.GagaXssServletFilter;
|
|
|
-import com.gagaframework.web.rest.client.GagaRequestStringTrim;
|
|
|
+import com.style24.core.support.filter.TscXssServletFilter;
|
|
|
import com.style24.front.support.interceptor.TsfAflinkInterceptor;
|
|
|
import com.style24.front.support.interceptor.TsfDefaultInterceptor;
|
|
|
import com.style24.front.support.interceptor.TsfGoodsViewInterceptor;
|
|
|
@@ -27,6 +26,8 @@ import com.style24.front.support.interceptor.TsfLoginCheckInterceptor;
|
|
|
import com.style24.front.support.interceptor.TsfRememberMeInterceptor;
|
|
|
import com.style24.front.support.interceptor.TsfReturnUrlInterceptor;
|
|
|
|
|
|
+import com.gagaframework.web.rest.client.GagaRequestStringTrim;
|
|
|
+
|
|
|
/**
|
|
|
* Web MVC Configuration
|
|
|
*
|
|
|
@@ -163,7 +164,8 @@ public class TsfWebMvcConfig implements WebMvcConfigurer {
|
|
|
@Bean
|
|
|
public FilterRegistrationBean xssFilterRegistrationBean() {
|
|
|
FilterRegistrationBean bean = new FilterRegistrationBean();
|
|
|
- bean.setFilter(new GagaXssServletFilter());
|
|
|
+// bean.setFilter(new GagaXssServletFilter());
|
|
|
+ bean.setFilter(new TscXssServletFilter());
|
|
|
bean.setOrder(2);
|
|
|
bean.addUrlPatterns("/*");
|
|
|
return bean;
|