Class CorsConfigurer<H extends HttpSecurityBuilder<H>>

  • Type Parameters:
    H - the builder to return.
    All Implemented Interfaces:

    public class CorsConfigurer<H extends HttpSecurityBuilder<H>>
    extends AbstractHttpConfigurer<CorsConfigurer<H>,​H>
    Adds CorsFilter to the Spring Security filter chain. If a bean by the name of corsFilter is provided, that CorsFilter is used. Else if corsConfigurationSource is defined, then that CorsConfiguration is used. Otherwise, if Spring MVC is on the classpath a HandlerMappingIntrospector is used.