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 {
17
17
private static Logger logger = LoggerFactory .getLogger (SecurityUtil .class );
18
18
19
19
/**
20
- * 同时支持一级域名和多级域名,相关配置在resources目录下url/safe_domain .xml文件。
20
+ * 同时支持一级域名和多级域名,相关配置在resources目录下url/url_safe_domain .xml文件。
21
21
* 优先判断黑名单,如果满足黑名单return null。
22
22
*
23
23
* @param url the url need to check
Original file line number Diff line number Diff line change 1
1
package org .joychou .security ;
2
2
3
- import org .joychou .interceptor .JsonpInterceptor ;
4
3
import org .springframework .beans .factory .annotation .Autowired ;
5
4
import org .springframework .beans .factory .annotation .Value ;
6
5
import org .springframework .context .annotation .Bean ;
14
13
import org .springframework .web .cors .CorsConfiguration ;
15
14
import org .springframework .web .cors .CorsConfigurationSource ;
16
15
import org .springframework .web .cors .UrlBasedCorsConfigurationSource ;
17
- import org .springframework .web .servlet .config .annotation .InterceptorRegistry ;
18
16
19
17
import javax .servlet .http .HttpServletRequest ;
20
18
import java .util .ArrayList ;
@@ -39,7 +37,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
39
37
@ Value ("${joychou.security.csrf.method}" )
40
38
private String [] csrfMethod = {"POST" };
41
39
42
- RequestMatcher csrfRequestMatcher = new RequestMatcher () {
40
+ private RequestMatcher csrfRequestMatcher = new RequestMatcher () {
43
41
44
42
@ Override
45
43
public boolean matches (HttpServletRequest request ) {
You can’t perform that action at this time.
0 commit comments