public class CorsConfigurer extends Object
CorsConfiguration mapped to one or more path patterns.CorsRegistration| Constructor and Description |
|---|
CorsConfigurer() |
| Modifier and Type | Method and Description |
|---|---|
CorsRegistration |
enableCors(String... pathPatterns)
Enable cross origin requests on the specified path patterns.
|
protected Map<String,org.springframework.web.cors.CorsConfiguration> |
getCorsConfigurations() |
public CorsRegistration enableCors(String... pathPatterns)
By default, all origins, all headers and credentials are allowed. Max age is set to 30 minutes.