Class ServerHttpSecurity.HeaderSpec.CrossOriginEmbedderPolicySpec
- java.lang.Object
-
- org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginEmbedderPolicySpec
-
- Enclosing class:
- ServerHttpSecurity.HeaderSpec
public final class ServerHttpSecurity.HeaderSpec.CrossOriginEmbedderPolicySpec extends java.lang.Object
Configures the Cross-Origin-Embedder-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.CrossOriginEmbedderPolicySpec
policy(CrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy embedderPolicy)
Sets the value to be used in the `Cross-Origin-Embedder-Policy` header
-
-
-
Method Detail
-
policy
public ServerHttpSecurity.HeaderSpec.CrossOriginEmbedderPolicySpec policy(CrossOriginEmbedderPolicyServerHttpHeadersWriter.CrossOriginEmbedderPolicy embedderPolicy)
Sets the value to be used in the `Cross-Origin-Embedder-Policy` header- Parameters:
embedderPolicy
- a opener policy- Returns:
- the
ServerHttpSecurity.HeaderSpec.CrossOriginEmbedderPolicySpec
to continue configuring
-
and
public ServerHttpSecurity.HeaderSpec and()
Allows method chaining to continue configuring theServerHttpSecurity
.- Returns:
- the
ServerHttpSecurity.HeaderSpec
to continue configuring
-
-