Uses of Class
org.springframework.web.cors.CorsConfiguration
Packages that use CorsConfiguration Package Description org.springframework.web.cors Support for CORS (Cross-Origin Resource Sharing), based on a commonCorsProcessor
strategy.org.springframework.web.cors.reactive Reactive support for CORS (Cross-Origin Resource Sharing), based on a commonCorsProcessor
strategy.org.springframework.web.reactive.config Spring WebFlux configuration infrastructure.org.springframework.web.reactive.handler Provides HandlerMapping implementations including abstract base classes.org.springframework.web.reactive.result.method Infrastructure for handler method processing.org.springframework.web.reactive.result.method.annotation Infrastructure for annotation-based handler method processing.org.springframework.web.servlet.config Defines the XML configuration namespace for Spring MVC.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.web.socket.sockjs.support Support classes for SockJS including anAbstractSockJsService
implementation.Uses of CorsConfiguration in org.springframework.web.cors
Methods in org.springframework.web.cors that return CorsConfiguration Modifier and Type Method Description CorsConfiguration
CorsConfiguration. applyPermitDefaultValues()
By default a newly createdCorsConfiguration
does not permit any cross-origin requests and must be configured explicitly to indicate what should be allowed.CorsConfiguration
CorsConfiguration. combine(CorsConfiguration other)
Combine the non-null properties of the suppliedCorsConfiguration
with this one.CorsConfiguration
CorsConfigurationSource. getCorsConfiguration(HttpServletRequest request)
Return aCorsConfiguration
based on the incoming request.CorsConfiguration
UrlBasedCorsConfigurationSource. getCorsConfiguration(HttpServletRequest request)
Methods in org.springframework.web.cors that return types with arguments of type CorsConfiguration Modifier and Type Method Description Map<String,CorsConfiguration>
UrlBasedCorsConfigurationSource. getCorsConfigurations()
Get the CORS configuration.Methods in org.springframework.web.cors with parameters of type CorsConfiguration Modifier and Type Method Description protected List<String>
DefaultCorsProcessor. checkHeaders(CorsConfiguration config, List<String> requestHeaders)
Check the headers and determine the headers for the response of a pre-flight request.protected List<HttpMethod>
DefaultCorsProcessor. checkMethods(CorsConfiguration config, HttpMethod requestMethod)
Check the HTTP method and determine the methods for the response of a pre-flight request.protected String
DefaultCorsProcessor. checkOrigin(CorsConfiguration config, String requestOrigin)
Check the origin and determine the origin for the response.CorsConfiguration
CorsConfiguration. combine(CorsConfiguration other)
Combine the non-null properties of the suppliedCorsConfiguration
with this one.protected boolean
DefaultCorsProcessor. handleInternal(ServerHttpRequest request, ServerHttpResponse response, CorsConfiguration config, boolean preFlightRequest)
Handle the given request.boolean
CorsProcessor. processRequest(CorsConfiguration configuration, HttpServletRequest request, HttpServletResponse response)
Process a request given aCorsConfiguration
.boolean
DefaultCorsProcessor. processRequest(CorsConfiguration config, HttpServletRequest request, HttpServletResponse response)
void
UrlBasedCorsConfigurationSource. registerCorsConfiguration(String path, CorsConfiguration config)
Register aCorsConfiguration
for the specified path pattern.Method parameters in org.springframework.web.cors with type arguments of type CorsConfiguration Modifier and Type Method Description void
UrlBasedCorsConfigurationSource. setCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations)
Set CORS configuration based on URL patterns.Constructors in org.springframework.web.cors with parameters of type CorsConfiguration Constructor Description CorsConfiguration(CorsConfiguration other)
Construct a newCorsConfiguration
instance by copying all values from the suppliedCorsConfiguration
.Uses of CorsConfiguration in org.springframework.web.cors.reactive
Methods in org.springframework.web.cors.reactive that return CorsConfiguration Modifier and Type Method Description CorsConfiguration
CorsConfigurationSource. getCorsConfiguration(ServerWebExchange exchange)
Return aCorsConfiguration
based on the incoming request.CorsConfiguration
UrlBasedCorsConfigurationSource. getCorsConfiguration(ServerWebExchange exchange)
Methods in org.springframework.web.cors.reactive with parameters of type CorsConfiguration Modifier and Type Method Description protected List<String>
DefaultCorsProcessor. checkHeaders(CorsConfiguration config, List<String> requestHeaders)
Check the headers and determine the headers for the response of a pre-flight request.protected List<HttpMethod>
DefaultCorsProcessor. checkMethods(CorsConfiguration config, HttpMethod requestMethod)
Check the HTTP method and determine the methods for the response of a pre-flight request.protected String
DefaultCorsProcessor. checkOrigin(CorsConfiguration config, String requestOrigin)
Check the origin and determine the origin for the response.protected boolean
DefaultCorsProcessor. handleInternal(ServerWebExchange exchange, CorsConfiguration config, boolean preFlightRequest)
Handle the given request.boolean
CorsProcessor. process(CorsConfiguration configuration, ServerWebExchange exchange)
Process a request using the givenCorsConfiguration
.boolean
DefaultCorsProcessor. process(CorsConfiguration config, ServerWebExchange exchange)
void
UrlBasedCorsConfigurationSource. registerCorsConfiguration(String path, CorsConfiguration config)
Register aCorsConfiguration
for the specified path pattern.Method parameters in org.springframework.web.cors.reactive with type arguments of type CorsConfiguration Modifier and Type Method Description void
UrlBasedCorsConfigurationSource. setCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations)
Set CORS configuration based on URL patterns.Uses of CorsConfiguration in org.springframework.web.reactive.config
Methods in org.springframework.web.reactive.config that return CorsConfiguration Modifier and Type Method Description protected CorsConfiguration
CorsRegistration. getCorsConfiguration()
Methods in org.springframework.web.reactive.config that return types with arguments of type CorsConfiguration Modifier and Type Method Description protected Map<String,CorsConfiguration>
CorsRegistry. getCorsConfigurations()
Return the registeredCorsConfiguration
objects, keyed by path pattern.protected Map<String,CorsConfiguration>
WebFluxConfigurationSupport. getCorsConfigurations()
Callback for building the global CORS configuration.Uses of CorsConfiguration in org.springframework.web.reactive.handler
Methods in org.springframework.web.reactive.handler that return CorsConfiguration Modifier and Type Method Description protected CorsConfiguration
AbstractHandlerMapping. getCorsConfiguration(Object handler, ServerWebExchange exchange)
Retrieve the CORS configuration for the given handler.Method parameters in org.springframework.web.reactive.handler with type arguments of type CorsConfiguration Modifier and Type Method Description void
AbstractHandlerMapping. setCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations)
Set the "global" CORS configurations based on URL patterns.Uses of CorsConfiguration in org.springframework.web.reactive.result.method
Methods in org.springframework.web.reactive.result.method that return CorsConfiguration Modifier and Type Method Description protected CorsConfiguration
AbstractHandlerMethodMapping. getCorsConfiguration(Object handler, ServerWebExchange exchange)
protected CorsConfiguration
AbstractHandlerMethodMapping. initCorsConfiguration(Object handler, Method method, T mapping)
Extract and return the CORS configuration for the mapping.Uses of CorsConfiguration in org.springframework.web.reactive.result.method.annotation
Methods in org.springframework.web.reactive.result.method.annotation that return CorsConfiguration Modifier and Type Method Description protected CorsConfiguration
RequestMappingHandlerMapping. initCorsConfiguration(Object handler, Method method, RequestMappingInfo mappingInfo)
Uses of CorsConfiguration in org.springframework.web.servlet.config
Method parameters in org.springframework.web.servlet.config with type arguments of type CorsConfiguration Modifier and Type Method Description static RuntimeBeanReference
MvcNamespaceUtils. registerCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations, ParserContext context, Object source)
Registers aMap<String, CorsConfiguration>
(mappedCorsConfiguration
s) under a well-known name unless already registered.Uses of CorsConfiguration in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation that return CorsConfiguration Modifier and Type Method Description protected CorsConfiguration
CorsRegistration. getCorsConfiguration()
Methods in org.springframework.web.servlet.config.annotation that return types with arguments of type CorsConfiguration Modifier and Type Method Description protected Map<String,CorsConfiguration>
CorsRegistry. getCorsConfigurations()
Return the registeredCorsConfiguration
objects, keyed by path pattern.protected Map<String,CorsConfiguration>
WebMvcConfigurationSupport. getCorsConfigurations()
Return the registeredCorsConfiguration
objects, keyed by path pattern.Uses of CorsConfiguration in org.springframework.web.servlet.handler
Methods in org.springframework.web.servlet.handler that return CorsConfiguration Modifier and Type Method Description protected CorsConfiguration
AbstractHandlerMapping. getCorsConfiguration(Object handler, HttpServletRequest request)
Retrieve the CORS configuration for the given handler.protected CorsConfiguration
AbstractHandlerMethodMapping. getCorsConfiguration(Object handler, HttpServletRequest request)
CorsConfiguration
HandlerMappingIntrospector. getCorsConfiguration(HttpServletRequest request)
protected CorsConfiguration
AbstractHandlerMethodMapping. initCorsConfiguration(Object handler, Method method, T mapping)
Extract and return the CORS configuration for the mapping.Methods in org.springframework.web.servlet.handler with parameters of type CorsConfiguration Modifier and Type Method Description protected HandlerExecutionChain
AbstractHandlerMapping. getCorsHandlerExecutionChain(HttpServletRequest request, HandlerExecutionChain chain, CorsConfiguration config)
Update the HandlerExecutionChain for CORS-related handling.Method parameters in org.springframework.web.servlet.handler with type arguments of type CorsConfiguration Modifier and Type Method Description void
AbstractHandlerMapping. setCorsConfigurations(Map<String,CorsConfiguration> corsConfigurations)
Set the "global" CORS configurations based on URL patterns.Uses of CorsConfiguration in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation that return CorsConfiguration Modifier and Type Method Description protected CorsConfiguration
RequestMappingHandlerMapping. initCorsConfiguration(Object handler, Method method, RequestMappingInfo mappingInfo)
Uses of CorsConfiguration in org.springframework.web.servlet.resource
Methods in org.springframework.web.servlet.resource that return CorsConfiguration Modifier and Type Method Description CorsConfiguration
ResourceHttpRequestHandler. getCorsConfiguration(HttpServletRequest request)
Return the specified CORS configuration.Methods in org.springframework.web.servlet.resource with parameters of type CorsConfiguration Modifier and Type Method Description void
ResourceHttpRequestHandler. setCorsConfiguration(CorsConfiguration corsConfiguration)
Specify the CORS configuration for resources served by this handler.Uses of CorsConfiguration in org.springframework.web.socket.sockjs.support
Methods in org.springframework.web.socket.sockjs.support that return CorsConfiguration Modifier and Type Method Description CorsConfiguration
AbstractSockJsService. getCorsConfiguration(HttpServletRequest request)
CorsConfiguration
SockJsHttpRequestHandler. getCorsConfiguration(HttpServletRequest request)