Top Description Methods
org.springframework.web.cors.reactive

public Interface CorsProcessor

Known Direct Implementers
org.springframework.web.cors.reactive.DefaultCorsProcessor
Imports
org.springframework.lang.Nullable, org.springframework.web.cors.CorsConfiguration, org.springframework.web.server.ServerWebExchange

A strategy to apply CORS validation checks and updates to a ServerWebExchange, either rejecting through the response or adding CORS related headers, based on a pre-selected CorsConfiguration.
Authors
Sebastien Deleuze, Rossen Stoyanchev
Since
5.0
See Also
CORS W3C recommendation

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

false if the request was rejected, true otherwise
process
(CorsConfiguration
the CORS configuration to use; possibly null in which case pre-flight requests are rejected, but all others allowed.
configuration
,
ServerWebExchange
the current exchange
exchange
)

Process a request using the given CorsConfiguration.

Method Detail

processback to summary
public boolean process(CorsConfiguration configuration, ServerWebExchange exchange)

Process a request using the given CorsConfiguration.

Parameters
configuration:CorsConfiguration

the CORS configuration to use; possibly null in which case pre-flight requests are rejected, but all others allowed.

exchange:ServerWebExchange

the current exchange

Returns:boolean

false if the request was rejected, true otherwise