This commit is contained in:
shiziyuan9527 2021-03-10 17:23:03 +08:00
commit 75c4e672f6
1 changed files with 1 additions and 0 deletions

View File

@ -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))) {