fix: 没有登录不需要校验csrf
This commit is contained in:
parent
9de992a91c
commit
7c40fa3377
|
@ -26,6 +26,7 @@ public class CsrfFilter extends AnonymousFilter {
|
|||
|
||||
if (!SecurityUtils.getSubject().isAuthenticated()) {
|
||||
((HttpServletResponse) response).setHeader("Authentication-Status", "invalid");
|
||||
return true;
|
||||
}
|
||||
// api 过来的请求
|
||||
if (ApiKeyHandler.isApiKeyCall(WebUtils.toHttp(request))) {
|
||||
|
|
Loading…
Reference in New Issue