Class HeadersConfigurer.CrossOriginEmbedderPolicyConfig
java.lang.Object
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginEmbedderPolicyConfig
- Enclosing class:
- HeadersConfigurer<H extends HttpSecurityBuilder<H>>
-
Constructor Summary
-
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 policy to be used in theCross-Origin-Embedder-Policy
header
-
Constructor Details
-
CrossOriginEmbedderPolicyConfig
public CrossOriginEmbedderPolicyConfig()
-
-
Method Details
-
policy
public HeadersConfigurer<H>.CrossOriginEmbedderPolicyConfig policy(CrossOriginEmbedderPolicyHeaderWriter.CrossOriginEmbedderPolicy embedderPolicy) Sets the policy to be used in theCross-Origin-Embedder-Policy
header- Parameters:
embedderPolicy
- aCross-Origin-Embedder-Policy
- Returns:
- the
HeadersConfigurer<H extends HttpSecurityBuilder<H>>.CrossOriginEmbedderPolicyConfig
for additional configuration - Throws:
IllegalArgumentException
- if embedderPolicy is null
-
and
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseHeadersConfigurer.crossOriginEmbedderPolicy(Customizer)
insteadAllows completing configuration of Cross-Origin-Embedder-Policy and continuing configuration of headers.- Returns:
- the
HeadersConfigurer
for additional configuration
-