Top Description Interfaces Classes
module spring.web

Package org.springframework.web.cors

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

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 request.

public interface
CorsProcessor

A strategy that takes a request and a CorsConfiguration and updates the response.

Class Summary

Modifier and TypeClass and Description
public class
CorsConfiguration

A container for CORS configuration along with methods to check against the actual origin, HTTP methods, and headers of a given request.

public abstract class
CorsUtils

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

public class
DefaultCorsProcessor

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

public class
UrlBasedCorsConfigurationSource

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