public interface CorsProcessor
ServerWebExchange, either rejecting through the response or adding
CORS related headers, based on a pre-selected CorsConfiguration.| Modifier and Type | Method and Description |
|---|---|
boolean |
process(CorsConfiguration configuration,
ServerWebExchange exchange)
Process a request using the given
CorsConfiguration. |
boolean process(@Nullable CorsConfiguration configuration, ServerWebExchange exchange)
CorsConfiguration.configuration - the CORS configuration to use; possibly null
in which case pre-flight requests are rejected, but all others allowed.exchange - the current exchangefalse if the request was rejected, true otherwise