CorsRegistration | CorsRegistry.addMapping(String pathPattern) | Enable cross-origin request handling for the specified path pattern. |
---|
CorsRegistration | CorsRegistration.allowCredentials(boolean allowCredentials) | Whether the browser should send credentials, such as cookies along with cross domain requests, to the annotated endpoint. |
---|
CorsRegistration | CorsRegistration.allowedHeaders(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(String... methods) | Set the HTTP methods to allow, e.g. |
---|
CorsRegistration | CorsRegistration.allowedOrigins(String... origins) | The list of allowed origins that be specific origins, e.g. |
---|
CorsRegistration | CorsRegistration.exposedHeaders(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. |
---|