白名单添加

This commit is contained in:
2025-10-26 13:29:33 +08:00
parent a16e4ca761
commit e8b7187bcd

View File

@@ -103,6 +103,7 @@ public class SecurityConfig
.headers((headersCustomizer) -> {
headersCustomizer.cacheControl(cache -> cache.disable()).frameOptions(options -> options.sameOrigin());
})
// 认证失败处理类
.exceptionHandling(exception -> exception.authenticationEntryPoint(unauthorizedHandler))
// 基于token所以不需要session