Skip to content

Commit

Permalink
✨ Xss过滤拦截
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahaochan committed Dec 4, 2023
1 parent 445f11d commit c1fa9fc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ahao-web/src/main/java/moe/ahao/web/config/XssConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package moe.ahao.web.config;

import moe.ahao.spring.web.xss.XssFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class XssConfig {
@Bean
public FilterRegistrationBean<XssFilter> hystrixCacheFilterFilterRegistrationBean() {
FilterRegistrationBean<XssFilter> bean = XssFilter.buildFilterBean("/*");
return bean;
}
}

0 comments on commit c1fa9fc

Please sign in to comment.