Package org.springframework.web.cors.reactive
@NonNullApi
@NonNullFields
package org.springframework.web.cors.reactive
Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor
strategy.-
ClassDescriptionInterface to be implemented by classes (usually HTTP request handlers) that provides a
CorsConfiguration
instance based on the provided reactive request.A strategy to apply CORS validation checks and updates to aServerWebExchange
, either rejecting through the response or adding CORS related headers, based on a pre-selectedCorsConfiguration
.Utility class for CORS reactive request handling based on the CORS W3C recommendation.WebFilter
that handles CORS preflight requests and intercepts CORS simple and actual requests thanks to aCorsProcessor
implementation (DefaultCorsProcessor
by default) in order to add the relevant CORS response headers (likeAccess-Control-Allow-Origin
) using the providedCorsConfigurationSource
(for example anUrlBasedCorsConfigurationSource
instance.The default implementation ofCorsProcessor
, as defined by the CORS W3C recommendation.Handler for CORS pre-flight requests.WebFilter that handles pre-flight requests through aPreFlightRequestHandler
and bypasses the rest of the chain.CorsConfigurationSource
that uses URL patterns to select theCorsConfiguration
for a request.