Class HeadersConfigurer.ReferrerPolicyConfig
java.lang.Object
org.springframework.security.config.annotation.web.configurers.HeadersConfigurer.ReferrerPolicyConfig
- Enclosing class:
- HeadersConfigurer<H extends HttpSecurityBuilder<H>>
-
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 the response header.
-
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
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseHeadersConfigurer.referrerPolicy(Customizer)
orreferrerPolicy(Customizer.withDefaults())
to stick with defaults. See the documentation for more details.
-