|
@@ -83,7 +83,7 @@ public class SimpleCORSFilter implements Filter {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 不需要 Token 校验的接口
|
|
|
+ * 这些映射无需进行api/appSecret等参数校验,故过滤
|
|
|
*/
|
|
|
private final static String[] NO_TOKEN_API_PATHS ={
|
|
|
"/**/favicon.ico",
|
|
@@ -211,9 +211,8 @@ public class SimpleCORSFilter implements Filter {
|
|
|
return;
|
|
|
}
|
|
|
/**
|
|
|
- * 校验用户 Token
|
|
|
+ * 这些映射无需进行api/appSecret等参数校验,故过滤
|
|
|
*/
|
|
|
-
|
|
|
boolean flag = (!Arrays.asList(NO_TOKEN_API_PATHS).contains(httpRequest.getRequestURI()));
|
|
|
if(httpRequest.getRequestURI().contains("/user/") || "/".equals(httpRequest.getRequestURI()) || httpRequest.getRequestURI().contains("/static/") || httpRequest.getRequestURI().contains("/jkcredit/")){
|
|
|
flag = false;
|