Package 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
Modifier and TypeMethodDescriptiongetCorsConfiguration(HttpServletRequest request) Return aCorsConfigurationbased on the incoming request.
-
Method Details
-
getCorsConfiguration
Return aCorsConfigurationbased on the incoming request.- Returns:
- the associated
CorsConfiguration, ornullif none
-