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