public interface CorsProcessor
CorsConfiguration and
updates the response.
This component is not concerned with how a CorsConfiguration is
selected but rather takes follow-up actions such as applying CORS validation
checks and either rejecting the response or adding CORS headers to the
response.
| Modifier and Type | Method and Description |
|---|---|
boolean |
process(CorsConfiguration configuration,
ServerWebExchange exchange)
Process an HTTP exchange given a
CorsConfiguration. |
boolean process(@Nullable
CorsConfiguration configuration,
ServerWebExchange exchange)
CorsConfiguration.configuration - the applicable CORS configuration (possibly null)exchange - the current HTTP request / responseMono emitting false if the request is rejected, true otherwise