Class HeadersConfigurer.CrossOriginResourcePolicyConfig
java.lang.Object
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.CrossOriginResourcePolicyConfig
- Enclosing class:
- HeadersConfigurer<H extends HttpSecurityBuilder<H>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionand()
Allows completing configuration of Cross-Origin-Resource-Policy and continuing configuration of headers.Sets the policy to be used in theCross-Origin-Resource-Policy
header
-
Constructor Details
-
CrossOriginResourcePolicyConfig
public CrossOriginResourcePolicyConfig()
-
-
Method Details
-
policy
public HeadersConfigurer<H>.CrossOriginResourcePolicyConfig policy(CrossOriginResourcePolicyHeaderWriter.CrossOriginResourcePolicy resourcePolicy) Sets the policy to be used in theCross-Origin-Resource-Policy
header- Parameters:
resourcePolicy
- aCross-Origin-Resource-Policy
- Returns:
- the
HeadersConfigurer<H extends HttpSecurityBuilder<H>>.CrossOriginResourcePolicyConfig
for additional configuration - Throws:
IllegalArgumentException
- if resourcePolicy is null
-
and
Allows completing configuration of Cross-Origin-Resource-Policy and continuing configuration of headers.- Returns:
- the
HeadersConfigurer
for additional configuration
-