Class HeadersConfigurer.ReferrerPolicyConfig
java.lang.Object
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ReferrerPolicyConfig
- Enclosing class:
- HeadersConfigurer<H extends HttpSecurityBuilder<H>>
-
Method Summary
-
Method Details
-
policy
public HeadersConfigurer<H>.ReferrerPolicyConfig policy(ReferrerPolicyHeaderWriter.ReferrerPolicy policy) Sets the policy to be used in the response header.- Parameters:
policy
- a referrer policy- Returns:
- the
HeadersConfigurer<H extends HttpSecurityBuilder<H>>.ReferrerPolicyConfig
for additional configuration - Throws:
IllegalArgumentException
- if policy is null
-
and
-