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()
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-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
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseHeadersConfigurer.crossOriginResourcePolicy(Customizer)
insteadAllows completing configuration of Cross-Origin-Resource-Policy and continuing configuration of headers.- Returns:
- the
HeadersConfigurer
for additional configuration
-