Top Description Methods
org.springframework.web.cors

public Interface CorsConfigurationSource

Known Direct Implementers
org.springframework.web.cors.UrlBasedCorsConfigurationSource
Imports
jakarta.servlet.http.HttpServletRequest, org.springframework.lang.Nullable

Interface to be implemented by classes (usually HTTP request handlers) that provides a CorsConfiguration instance based on the provided request.
Author
Sebastien Deleuze
Since
4.2

Method Summary

Modifier and TypeMethod and Description
public CorsConfiguration

Returns:

the associated CorsConfiguration, or null if none
getCorsConfiguration
(HttpServletRequest request)

Return a CorsConfiguration based on the incoming request.

Method Detail

getCorsConfigurationback to summary
public CorsConfiguration getCorsConfiguration(HttpServletRequest request)

Return a CorsConfiguration based on the incoming request.

Returns:CorsConfiguration

the associated CorsConfiguration, or null if none

Annotations
@Nullable