org.springframework.web.cors

## Interface CorsConfigurationSource

- All Known Implementing Classes:
    AbstractSockJsService, DefaultSockJsService, HandlerMappingIntrospector, ResourceHttpRequestHandler, SockJsHttpRequestHandler, TransportHandlingSockJsService, UrlBasedCorsConfigurationSource

      public interface CorsConfigurationSource

  Interface to be implemented by classes (usually HTTP request handlers) that provides a `CorsConfiguration` instance based on the provided request.
  Since:
    4.2
  Author:
    Sebastien Deleuze

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `CorsConfiguration` | `getCorsConfiguration(HttpServletRequest request)` Return a `CorsConfiguration` based on the incoming request.

- - ### Method Detail

    - #### getCorsConfiguration

          @Nullable
          CorsConfiguration getCorsConfiguration(HttpServletRequest request)

      Return a `CorsConfiguration` based on the incoming request.
      Returns:
        the associated `CorsConfiguration`, or `null` if none