Skip to content

Commit 039d0f1

Browse files
committed
bug fix
1 parent 89cb9d8 commit 039d0f1

File tree

3 files changed

+2
-44
lines changed

3 files changed

+2
-44
lines changed

src/main/java/org/joychou/interceptor/JsonpInterceptor.java

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/main/java/org/joychou/security/SecurityUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/main/java/org/joychou/security/WebSecurityConfig.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package org.joychou.security;
22

3-
import org.joychou.interceptor.JsonpInterceptor;
43
import org.springframework.beans.factory.annotation.Autowired;
54
import org.springframework.beans.factory.annotation.Value;
65
import org.springframework.context.annotation.Bean;
@@ -14,7 +13,6 @@
1413
import org.springframework.web.cors.CorsConfiguration;
1514
import org.springframework.web.cors.CorsConfigurationSource;
1615
import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
17-
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
1816

1917
import javax.servlet.http.HttpServletRequest;
2018
import 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) {

0 commit comments

Comments
 (0)