Package | Description |
---|---|
org.springframework.web.cors.reactive |
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor strategy. |
org.springframework.web.reactive.handler |
Provides HandlerMapping implementations including abstract base classes.
|
Modifier and Type | Class and Description |
---|---|
class |
UrlBasedCorsConfigurationSource
CorsConfigurationSource that uses URL patterns to select the
CorsConfiguration for a request. |
Constructor and Description |
---|
CorsWebFilter(CorsConfigurationSource configSource)
Constructor accepting a
CorsConfigurationSource used by the filter
to find the CorsConfiguration to use for each incoming request. |
CorsWebFilter(CorsConfigurationSource configSource,
CorsProcessor processor)
Constructor accepting a
CorsConfigurationSource used by the filter
to find the CorsConfiguration to use for each incoming request and a
custom CorsProcessor to use to apply the matched
CorsConfiguration for a request. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractHandlerMapping.setCorsConfigurationSource(CorsConfigurationSource corsConfigurationSource)
Set the "global" CORS configuration source.
|