Class ServerHttpSecurity.HeaderSpec.CrossOriginOpenerPolicySpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginOpenerPolicySpec
-
- Enclosing class:
- ServerHttpSecurity.HeaderSpec
public final class ServerHttpSecurity.HeaderSpec.CrossOriginOpenerPolicySpec extends java.lang.Object
Configures the Cross-Origin-Opener-Policy header- Since:
- 5.7
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerHttpSecurity.HeaderSpec
and()
Allows method chaining to continue configuring theServerHttpSecurity
.ServerHttpSecurity.HeaderSpec.CrossOriginOpenerPolicySpec
policy(CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy openerPolicy)
Sets the value to be used in the `Cross-Origin-Opener-Policy` header
-
-
-
Method Detail
-
policy
public ServerHttpSecurity.HeaderSpec.CrossOriginOpenerPolicySpec policy(CrossOriginOpenerPolicyServerHttpHeadersWriter.CrossOriginOpenerPolicy openerPolicy)
Sets the value to be used in the `Cross-Origin-Opener-Policy` header- Parameters:
openerPolicy
- a opener policy- Returns:
- the
ServerHttpSecurity.HeaderSpec.CrossOriginOpenerPolicySpec
to continue configuring
-
and
public ServerHttpSecurity.HeaderSpec and()
Allows method chaining to continue configuring theServerHttpSecurity
.- Returns:
- the
ServerHttpSecurity.HeaderSpec
to continue configuring
-
-