Uses of Class
org.springframework.web.cors.CorsConfiguration
Packages that use CorsConfiguration
Package
Description
Support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor
strategy.Reactive support for CORS (Cross-Origin Resource Sharing),
based on a common
CorsProcessor
strategy.Spring WebFlux configuration infrastructure.
Provides HandlerMapping implementations including abstract base classes.
Infrastructure for handler method processing.
Infrastructure for annotation-based handler method processing.
Defines the XML configuration namespace for Spring MVC.
Annotation-based setup for Spring MVC.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Support classes for serving static resources.
Support classes for SockJS including an
AbstractSockJsService
implementation.-
Uses of CorsConfiguration in org.springframework.web.cors
Methods in org.springframework.web.cors that return CorsConfigurationModifier and TypeMethodDescriptionCorsConfiguration.applyPermitDefaultValues()
By defaultCorsConfiguration
does not permit any cross-origin requests and must be configured explicitly.CorsConfiguration.combine
(CorsConfiguration other) Combine the non-null properties of the suppliedCorsConfiguration
with this one.CorsConfigurationSource.getCorsConfiguration
(HttpServletRequest request) Return aCorsConfiguration
based on the incoming request.UrlBasedCorsConfigurationSource.getCorsConfiguration
(HttpServletRequest request) CorsConfiguration.setAllowedOriginPatterns
(List<String> allowedOriginPatterns) Alternative tosetAllowedOrigins(java.util.List<java.lang.String>)
that supports more flexible origins patterns with "*" anywhere in the host name in addition to port lists.Methods in org.springframework.web.cors that return types with arguments of type CorsConfigurationModifier and TypeMethodDescriptionUrlBasedCorsConfigurationSource.getCorsConfigurations()
Return all configured CORS mappings.Methods in org.springframework.web.cors with parameters of type CorsConfigurationModifier and TypeMethodDescriptionDefaultCorsProcessor.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.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 pattern, CorsConfiguration config) Variant ofUrlBasedCorsConfigurationSource.setCorsConfigurations(Map)
to register one mapping at a time.Method parameters in org.springframework.web.cors with type arguments of type CorsConfigurationModifier and TypeMethodDescriptionvoid
UrlBasedCorsConfigurationSource.setCorsConfigurations
(Map<String, CorsConfiguration> corsConfigurations) Set the CORS configuration mappings.Constructors in org.springframework.web.cors with parameters of type CorsConfigurationModifierConstructorDescriptionConstruct 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 CorsConfigurationModifier and TypeMethodDescriptionCorsConfigurationSource.getCorsConfiguration
(ServerWebExchange exchange) Return aCorsConfiguration
based on the incoming request.UrlBasedCorsConfigurationSource.getCorsConfiguration
(ServerWebExchange exchange) Methods in org.springframework.web.cors.reactive with parameters of type CorsConfigurationModifier and TypeMethodDescriptionDefaultCorsProcessor.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 CorsConfigurationModifier and TypeMethodDescriptionvoid
UrlBasedCorsConfigurationSource.setCorsConfigurations
(Map<String, CorsConfiguration> configMap) 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 CorsConfigurationModifier and TypeMethodDescriptionprotected CorsConfiguration
CorsRegistration.getCorsConfiguration()
Methods in org.springframework.web.reactive.config that return types with arguments of type CorsConfigurationModifier and TypeMethodDescriptionprotected Map<String,
CorsConfiguration> CorsRegistry.getCorsConfigurations()
Return the registeredCorsConfiguration
objects, keyed by path pattern.protected final Map<String,
CorsConfiguration> WebFluxConfigurationSupport.getCorsConfigurations()
Callback for building the global CORS configuration.Methods in org.springframework.web.reactive.config with parameters of type CorsConfigurationModifier and TypeMethodDescriptionCorsRegistration.combine
(CorsConfiguration other) Apply the givenCorsConfiguration
to the one being configured viacombine(CorsConfiguration)
which in turn has been initialized withapplyPermitDefaultValues()
. -
Uses of CorsConfiguration in org.springframework.web.reactive.handler
Methods in org.springframework.web.reactive.handler that return CorsConfigurationModifier and TypeMethodDescriptionprotected 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 CorsConfigurationModifier and TypeMethodDescriptionvoid
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 CorsConfigurationModifier and TypeMethodDescriptionprotected 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 CorsConfigurationModifier and TypeMethodDescriptionprotected 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 CorsConfigurationModifier and TypeMethodDescriptionstatic 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 CorsConfigurationModifier and TypeMethodDescriptionprotected CorsConfiguration
CorsRegistration.getCorsConfiguration()
Methods in org.springframework.web.servlet.config.annotation that return types with arguments of type CorsConfigurationModifier and TypeMethodDescriptionprotected Map<String,
CorsConfiguration> CorsRegistry.getCorsConfigurations()
Return the registeredCorsConfiguration
objects, keyed by path pattern.protected final Map<String,
CorsConfiguration> WebMvcConfigurationSupport.getCorsConfigurations()
Return the registeredCorsConfiguration
objects, keyed by path pattern.Methods in org.springframework.web.servlet.config.annotation with parameters of type CorsConfigurationModifier and TypeMethodDescriptionCorsRegistration.combine
(CorsConfiguration other) Apply the givenCorsConfiguration
to the one being configured viacombine(CorsConfiguration)
which in turn has been initialized withapplyPermitDefaultValues()
. -
Uses of CorsConfiguration in org.springframework.web.servlet.handler
Methods in org.springframework.web.servlet.handler that return CorsConfigurationModifier and TypeMethodDescriptionHandlerMappingIntrospector.CachedResult.getCorsConfig()
protected CorsConfiguration
AbstractHandlerMapping.getCorsConfiguration
(Object handler, HttpServletRequest request) Retrieve the CORS configuration for the given handler.protected CorsConfiguration
AbstractHandlerMethodMapping.getCorsConfiguration
(Object handler, HttpServletRequest request) 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 CorsConfigurationModifier and TypeMethodDescriptionprotected 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 CorsConfigurationModifier and TypeMethodDescriptionvoid
AbstractHandlerMapping.setCorsConfigurations
(Map<String, CorsConfiguration> corsConfigurations) Set "global" CORS configuration mappings. -
Uses of CorsConfiguration in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation that return CorsConfigurationModifier and TypeMethodDescriptionprotected 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 CorsConfigurationModifier and TypeMethodDescriptionResourceHttpRequestHandler.getCorsConfiguration
(HttpServletRequest request) Return the specified CORS configuration.Methods in org.springframework.web.servlet.resource with parameters of type CorsConfigurationModifier and TypeMethodDescriptionvoid
ResourceHttpRequestHandler.setCorsConfiguration
(CorsConfiguration corsConfiguration) Specify the CORS configuration for resources served by this handler. -
Uses of CorsConfiguration in org.springframework.web.socket.sockjs.support
Fields in org.springframework.web.socket.sockjs.support declared as CorsConfigurationModifier and TypeFieldDescriptionprotected final CorsConfiguration
AbstractSockJsService.corsConfiguration
Methods in org.springframework.web.socket.sockjs.support that return CorsConfigurationModifier and TypeMethodDescriptionAbstractSockJsService.getCorsConfiguration
(HttpServletRequest request) SockJsHttpRequestHandler.getCorsConfiguration
(HttpServletRequest request)