Class ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
java.lang.Object
org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec
- Enclosing class:
- ServerHttpSecurity.HeaderSpec
Configures
Referrer-Policy response header.-
Method Summary
Modifier and TypeMethodDescriptionand()Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0.policy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy referrerPolicy) Sets the policy to be used in the response header.
-
Method Details
-
policy
public ServerHttpSecurity.HeaderSpec.ReferrerPolicySpec policy(ReferrerPolicyServerHttpHeadersWriter.ReferrerPolicy referrerPolicy) Sets the policy to be used in the response header.- Parameters:
referrerPolicy- a referrer policy- Returns:
- the
ServerHttpSecurity.HeaderSpec.ReferrerPolicySpecto continue configuring
-
and
Deprecated, for removal: This API element is subject to removal in a future version.For removal in 7.0. UseServerHttpSecurity.HeaderSpec.referrerPolicy(Customizer)insteadAllows method chaining to continue configuring theServerHttpSecurity.- Returns:
- the
ServerHttpSecurity.HeaderSpecto continue configuring
-