Interface CorsConfigurationSource
- All Known Implementing Classes:
UrlBasedCorsConfigurationSource
public interface CorsConfigurationSource
Interface to be implemented by classes (usually HTTP request handlers) that
provides a
CorsConfiguration instance based on the provided reactive request.- Since:
- 5.0
- Author:
- Sebastien Deleuze
-
Method Summary
Modifier and TypeMethodDescriptiongetCorsConfiguration(ServerWebExchange exchange) Return aCorsConfigurationbased on the incoming request.
-
Method Details
-
getCorsConfiguration
Return aCorsConfigurationbased on the incoming request.- Returns:
- the associated
CorsConfiguration, ornullif none
-