Package | Description |
---|---|
org.springframework.web.servlet.config.annotation |
Annotation-based setup for Spring MVC.
|
Modifier and Type | Method and Description |
---|---|
CorsRegistration |
CorsRegistry.addMapping(java.lang.String pathPattern)
Enable cross-origin request handling for the specified path pattern.
|
CorsRegistration |
CorsRegistration.allowCredentials(boolean allowCredentials)
Whether user credentials are supported.
|
CorsRegistration |
CorsRegistration.allowedHeaders(java.lang.String... headers)
Set the list of headers that a pre-flight request can list as allowed
for use during an actual request.
|
CorsRegistration |
CorsRegistration.allowedMethods(java.lang.String... methods)
Set the HTTP methods to allow, e.g.
|
CorsRegistration |
CorsRegistration.allowedOrigins(java.lang.String... origins)
Set the origins to allow, e.g.
|
CorsRegistration |
CorsRegistration.exposedHeaders(java.lang.String... headers)
Set the list of response headers other than "simple" headers, i.e.
|
CorsRegistration |
CorsRegistration.maxAge(long maxAge)
Configure how long in seconds the response from a pre-flight request
can be cached by clients.
|