Class ServerHttpSecurity.HeaderSpec.CrossOriginEmbedderPolicySpec
java.lang.Object
org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginEmbedderPolicySpec
- Enclosing class:
- ServerHttpSecurity.HeaderSpec
Configures the Cross-Origin-Embedder-Policy header
- Since:
- 5.7
-
Method Summary
Modifier and TypeMethodDescriptionand()
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0.Sets the value to be used in the `Cross-Origin-Embedder-Policy` header
-
Method Details
-
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
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.crossOriginEmbedderPolicy(Customizer)
insteadAllows method chaining to continue configuring theServerHttpSecurity
.- Returns:
- the
ServerHttpSecurity.HeaderSpec
to continue configuring
-