Class ServerHttpSecurity.HeaderSpec.CrossOriginResourcePolicySpec
java.lang.Object
org.springframework.security.config.web.server.ServerHttpSecurity.HeaderSpec.CrossOriginResourcePolicySpec
- Enclosing class:
- ServerHttpSecurity.HeaderSpec
Configures the Cross-Origin-Resource-Policy header
- Since:
- 5.7
-
Method Summary
Modifier and TypeMethodDescriptionand()
Allows method chaining to continue configuring theServerHttpSecurity
.Sets the value to be used in the `Cross-Origin-Resource-Policy` header
-
Method Details
-
policy
public ServerHttpSecurity.HeaderSpec.CrossOriginResourcePolicySpec policy(CrossOriginResourcePolicyServerHttpHeadersWriter.CrossOriginResourcePolicy resourcePolicy) Sets the value to be used in the `Cross-Origin-Resource-Policy` header- Parameters:
resourcePolicy
- a opener policy- Returns:
- the
ServerHttpSecurity.HeaderSpec.CrossOriginResourcePolicySpec
to continue configuring
-
and
Allows method chaining to continue configuring theServerHttpSecurity
.- Returns:
- the
ServerHttpSecurity.HeaderSpec
to continue configuring
-