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 |
processRequest(CorsConfiguration configuration,
ServerWebExchange exchange)
Process a request given a
CorsConfiguration. |
boolean processRequest(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