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
CorsConfigurationinstance 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.WebFilterthat handles CORS preflight requests and intercepts CORS simple and actual requests thanks to aCorsProcessorimplementation (DefaultCorsProcessorby default) in order to add the relevant CORS response headers (likeAccess-Control-Allow-Origin) using the providedCorsConfigurationSource(for example anUrlBasedCorsConfigurationSourceinstance.The default implementation ofCorsProcessor, as defined by the CORS W3C recommendation.Handler for CORS pre-flight requests.WebFilter that handles pre-flight requests through aPreFlightRequestHandlerand bypasses the rest of the chain.CorsConfigurationSourcethat uses URL patterns to select theCorsConfigurationfor a request.