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