|
|
@ -18,7 +18,6 @@ import com.ruoyi.common.utils.StringUtils; |
|
|
|
* @author ruoyi |
|
|
|
* @author ruoyi |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Configuration |
|
|
|
@Configuration |
|
|
|
@ConditionalOnProperty(value = "xss.enabled", havingValue = "true") |
|
|
|
|
|
|
|
public class FilterConfig |
|
|
|
public class FilterConfig |
|
|
|
{ |
|
|
|
{ |
|
|
|
@Value("${xss.excludes}") |
|
|
|
@Value("${xss.excludes}") |
|
|
@ -29,6 +28,7 @@ public class FilterConfig |
|
|
|
|
|
|
|
|
|
|
|
@SuppressWarnings({ "rawtypes", "unchecked" }) |
|
|
|
@SuppressWarnings({ "rawtypes", "unchecked" }) |
|
|
|
@Bean |
|
|
|
@Bean |
|
|
|
|
|
|
|
@ConditionalOnProperty(value = "xss.enabled", havingValue = "true") |
|
|
|
public FilterRegistrationBean xssFilterRegistration() |
|
|
|
public FilterRegistrationBean xssFilterRegistration() |
|
|
|
{ |
|
|
|
{ |
|
|
|
FilterRegistrationBean registration = new FilterRegistrationBean(); |
|
|
|
FilterRegistrationBean registration = new FilterRegistrationBean(); |
|
|
|