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()
Allows completing configuration of Cross-Origin-Embedder-Policy and continuing configuration of headers.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
Allows completing configuration of Cross-Origin-Embedder-Policy and continuing configuration of headers.- Returns:
- the
HeadersConfigurer
for additional configuration
-