集成
+# 集成
📄️ CORS
Spring Framework 为 CORS 提供了一流的支持。CORS 必须在 Spring Security 之前处理,因为预检请求不会包含任何 cookies(即 JSESSIONID)。如果请求不包含任何 cookies 并且 Spring Security 是首先处理的,那么请求将判定用户未通过身份验证(因为请求中没有 cookies)并拒绝它。
📄️ RSocket
Spring Security 的 RSocket 支持依赖于 SocketAcceptorInterceptor。安全性的主要入口点在 PayloadSocketAcceptorInterceptor 中,它将 RSocket API 适配为允许使用 PayloadInterceptor 实现拦截 PayloadExchange。
📄️ 可观测性
Spring Security 开箱即用地与 Spring Observability 集成以进行追踪;不过配置它来收集指标也非常简单。