クラス ServerHttpSecurity.CorsSpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.CorsSpec
- 含まれているクラス:
- ServerHttpSecurity
public final class ServerHttpSecurity.CorsSpec extends java.lang.Object
Spring Security 内の CORS サポートを構成します。これにより、CorsWebFilter
が正しい順序で配置されます。
メソッドのサマリー
すべてのメソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 ServerHttpSecurity
and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにしますServerHttpSecurity.CorsSpec
configurationSource(org.springframework.web.cors.reactive.CorsConfigurationSource source)
使用するCorsConfigurationSource
を構成しますprotected void
configure(ServerHttpSecurity http)
ServerHttpSecurity
disable()
Spring Security 内の CORS サポートを無効にします。
メソッドの詳細
configurationSource
public ServerHttpSecurity.CorsSpec configurationSource(org.springframework.web.cors.reactive.CorsConfigurationSource source)
使用するCorsConfigurationSource
を構成します- パラメーター:
source
- 使用するソース- 戻り値:
- 追加構成のための
ServerHttpSecurity.CorsSpec
disable
public ServerHttpSecurity disable()
Spring Security 内の CORS サポートを無効にします。- 戻り値:
ServerHttpSecurity
の構成を続行するには
and
public ServerHttpSecurity and()
メソッドチェーンがServerHttpSecurity
の構成を続行できるようにします- 戻り値:
ServerHttpSecurity
の構成を続行するには
configure
protected void configure(ServerHttpSecurity http)