File tree Expand file tree Collapse file tree 3 files changed +2
-44
lines changed
src/main/java/org/joychou Expand file tree Collapse file tree 3 files changed +2
-44
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public class SecurityUtil {
1717 private static Logger logger = LoggerFactory .getLogger (SecurityUtil .class );
1818
1919 /**
20- * 同时支持一级域名和多级域名,相关配置在resources目录下url/safe_domain .xml文件。
20+ * 同时支持一级域名和多级域名,相关配置在resources目录下url/url_safe_domain .xml文件。
2121 * 优先判断黑名单,如果满足黑名单return null。
2222 *
2323 * @param url the url need to check
Original file line number Diff line number Diff line change 11package org .joychou .security ;
22
3- import org .joychou .interceptor .JsonpInterceptor ;
43import org .springframework .beans .factory .annotation .Autowired ;
54import org .springframework .beans .factory .annotation .Value ;
65import org .springframework .context .annotation .Bean ;
1413import org .springframework .web .cors .CorsConfiguration ;
1514import org .springframework .web .cors .CorsConfigurationSource ;
1615import org .springframework .web .cors .UrlBasedCorsConfigurationSource ;
17- import org .springframework .web .servlet .config .annotation .InterceptorRegistry ;
1816
1917import javax .servlet .http .HttpServletRequest ;
2018import java .util .ArrayList ;
@@ -39,7 +37,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
3937 @ Value ("${joychou.security.csrf.method}" )
4038 private String [] csrfMethod = {"POST" };
4139
42- RequestMatcher csrfRequestMatcher = new RequestMatcher () {
40+ private RequestMatcher csrfRequestMatcher = new RequestMatcher () {
4341
4442 @ Override
4543 public boolean matches (HttpServletRequest request ) {
You can’t perform that action at this time.
0 commit comments