# Package org.springframework.web.cors

@NonNullApi @NonNullFields package org.springframework.web.cors
Support for CORS (Cross-Origin Resource Sharing), based on a common `CorsProcessor` strategy.

Related Packages
Package
Description
org.springframework.web
Common, generic interfaces that define minimal boundary points between Spring's web infrastructure and other framework modules.
org.springframework.web.cors.reactive
Reactive support for CORS (Cross-Origin Resource Sharing), based on a common `CorsProcessor` strategy.
Class
Description
CorsConfiguration
A container for CORS configuration along with methods to check against the actual origin, HTTP methods, and headers of a given request.
CorsConfigurationSource
Interface to be implemented by classes (usually HTTP request handlers) that provides a `CorsConfiguration` instance based on the provided request.
CorsProcessor
A strategy that takes a request and a `CorsConfiguration` and updates the response.
CorsUtils
Utility class for CORS request handling based on the CORS W3C recommendation.
DefaultCorsProcessor
The default implementation of `CorsProcessor`, as defined by the CORS W3C recommendation.
PreFlightRequestHandler
Handler for CORS pre-flight requests.
UrlBasedCorsConfigurationSource
`CorsConfigurationSource` that uses URL path patterns to select the `CorsConfiguration` for a request.