public class CorsRegistry extends Object
CorsConfiguration mappings.| Constructor and Description |
|---|
CorsRegistry() |
| Modifier and Type | Method and Description |
|---|---|
CorsRegistration |
addMapping(String pathPattern)
Enable cross origin request handling for the specified path pattern.
|
protected Map<String,CorsConfiguration> |
getCorsConfigurations() |
public CorsRegistration addMapping(String pathPattern)
Exact path mapping URIs (such as "/admin") are supported as
well as Ant-style path patterns (such as "/admin/**").
The following defaults are applied to the CorsRegistration:
GET, HEAD and POST.protected Map<String,CorsConfiguration> getCorsConfigurations()