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

public Interface PreFlightRequestHandler

Imports
reactor.core.publisher.Mono, org.springframework.web.server.ServerWebExchange

Handler for CORS pre-flight requests.
Author
Rossen Stoyanchev
Since
5.3.4
See Also
PreFlightRequestWebFilter

Method Summary

Modifier and TypeMethod and Description
public Mono<Void>

Returns:

a completion handle
handlePreFlight
(ServerWebExchange
the exchange for the request
exchange
)

Handle a pre-flight request by finding and applying the CORS configuration that matches the expected actual request.

Method Detail

handlePreFlightback to summary
public Mono<Void> handlePreFlight(ServerWebExchange exchange)

Handle a pre-flight request by finding and applying the CORS configuration that matches the expected actual request. As a result of handling, the response should be updated with CORS headers or rejected with org.springframework.http.HttpStatus#FORBIDDEN.

Parameters
exchange:ServerWebExchange

the exchange for the request

Returns:Mono<Void>

a completion handle