public class CorsRegistry
extends java.lang.Object
CorsConfiguration mappings.| Constructor and Description |
|---|
CorsRegistry() |
| Modifier and Type | Method and Description |
|---|---|
CorsRegistration |
addMapping(java.lang.String pathPattern)
Enable cross origin request handling for the specified path pattern.
|
protected java.util.Map<java.lang.String,CorsConfiguration> |
getCorsConfigurations() |
public CorsRegistration addMapping(java.lang.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 java.util.Map<java.lang.String,CorsConfiguration> getCorsConfigurations()