Interface CorsConfigurationSource
- All Known Implementing Classes:
UrlBasedCorsConfigurationSource
public interface CorsConfigurationSource
Interface to be implemented by classes (usually HTTP request handlers) that provides aCorsConfiguration
instance based on the provided reactive request.- Since:
- 5.0
- Author:
- Sebastien Deleuze
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CorsConfiguration
getCorsConfiguration(ServerWebExchange exchange)
Return aCorsConfiguration
based on the incoming request.
Method Detail
getCorsConfiguration
@Nullable CorsConfiguration getCorsConfiguration(ServerWebExchange exchange)
Return aCorsConfiguration
based on the incoming request.- Returns:
- the associated
CorsConfiguration
, ornull
if none