Top Description Interfaces Classes
module spring.web

Package org.springframework.web.cors.reactive

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Reactive support for CORS (Cross-Origin Resource Sharing), based on a common CorsProcessor strategy.

Interface Summary

Modifier and TypeInterface and Description
public interface
CorsConfigurationSource

Interface to be implemented by classes (usually HTTP request handlers) that provides a CorsConfiguration instance based on the provided reactive request.

public interface
CorsProcessor

A strategy to apply CORS validation checks and updates to a ServerWebExchange, either rejecting through the response or adding CORS related headers, based on a pre-selected CorsConfiguration.

public interface
PreFlightRequestHandler

Handler for CORS pre-flight requests.

Class Summary

Modifier and TypeClass and Description
public abstract class
CorsUtils

Utility class for CORS reactive request handling based on the CORS W3C recommendation.

public class
CorsWebFilter

WebFilter that handles CORS preflight requests and intercepts CORS simple and actual requests thanks to a CorsProcessor implementation (DefaultCorsProcessor by default) in order to add the relevant CORS response headers (like Access-Control-Allow-Origin) using the provided CorsConfigurationSource (for example an UrlBasedCorsConfigurationSource instance.

public class
DefaultCorsProcessor

The default implementation of CorsProcessor, as defined by the CORS W3C recommendation.

public class
PreFlightRequestWebFilter

WebFilter that handles pre-flight requests through a PreFlightRequestHandler and bypasses the rest of the chain.

public class
UrlBasedCorsConfigurationSource

CorsConfigurationSource that uses URL patterns to select the CorsConfiguration for a request.