Class CorswebFilter

java.lang.Object
org.springframework.web.cors.reactive.CorswebFilter
All Implemented Interfaces:
webFilter

public class CorswebFilter extends Object implements webFilter
webFilter that handles CORS preflight requests and intercepts CORS simple and actual requests thanks to a CorsProcessor implementation (DefaultCorsProcessor by default) in order to add the relevant CORS response headers (like Access-Control-Allow-Origin) using the provided CorsConfigurationSource (for example an UrlBasedCorsConfigurationSource instance.

This is an alternative to Spring webFlux Java config CORS configuration, mostly useful for applications using the functional API.

Since:
5.0
Author:
Sebastien Deleuze
See Also: