白名单添加
This commit is contained in:
@@ -103,6 +103,7 @@ public class SecurityConfig
|
|||||||
.headers((headersCustomizer) -> {
|
.headers((headersCustomizer) -> {
|
||||||
headersCustomizer.cacheControl(cache -> cache.disable()).frameOptions(options -> options.sameOrigin());
|
headersCustomizer.cacheControl(cache -> cache.disable()).frameOptions(options -> options.sameOrigin());
|
||||||
})
|
})
|
||||||
|
|
||||||
// 认证失败处理类
|
// 认证失败处理类
|
||||||
.exceptionHandling(exception -> exception.authenticationEntryPoint(unauthorizedHandler))
|
.exceptionHandling(exception -> exception.authenticationEntryPoint(unauthorizedHandler))
|
||||||
// 基于token,所以不需要session
|
// 基于token,所以不需要session
|
||||||
|
|||||||
Reference in New Issue
Block a user