Top Description Methods
org.springframework.web.cors.reactive

public Interface CorsConfigurationSource

Known Direct Implementers
org.springframework.web.cors.reactive.UrlBasedCorsConfigurationSource
Imports
org.springframework.lang.Nullable, org.springframework.web.cors.CorsConfiguration, org.springframework.web.server.ServerWebExchange

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

Method Summary

Modifier and TypeMethod and Description
public CorsConfiguration

Returns:

the associated CorsConfiguration, or null if none
getCorsConfiguration
(ServerWebExchange exchange)

Return a CorsConfiguration based on the incoming request.

Method Detail

getCorsConfigurationback to summary
public CorsConfiguration getCorsConfiguration(ServerWebExchange exchange)

Return a CorsConfiguration based on the incoming request.

Returns:CorsConfiguration

the associated CorsConfiguration, or null if none

Annotations
@Nullable