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 defaultCorsConfigurationdoes not permit any cross-origin requests and must be configured explicitly.CorsConfiguration.combine(CorsConfiguration other) Combine the non-null properties of the suppliedCorsConfigurationwith this one.CorsConfigurationSource.getCorsConfiguration(HttpServletRequest request) Return aCorsConfigurationbased 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 StringDefaultCorsProcessor.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 suppliedCorsConfigurationwith this one.protected booleanDefaultCorsProcessor.handleInternal(ServerHttpRequest request, ServerHttpResponse response, CorsConfiguration config, boolean preFlightRequest) Handle the given request.booleanCorsProcessor.processRequest(CorsConfiguration configuration, HttpServletRequest request, HttpServletResponse response) Process a request given aCorsConfiguration.booleanDefaultCorsProcessor.processRequest(CorsConfiguration config, HttpServletRequest request, HttpServletResponse response) voidUrlBasedCorsConfigurationSource.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 TypeMethodDescriptionvoidUrlBasedCorsConfigurationSource.setCorsConfigurations(Map<String, CorsConfiguration> corsConfigurations) Set the CORS configuration mappings.Constructors in org.springframework.web.cors with parameters of type CorsConfigurationModifierConstructorDescriptionConstruct a newCorsConfigurationinstance 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 aCorsConfigurationbased 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 StringDefaultCorsProcessor.checkOrigin(CorsConfiguration config, String requestOrigin) Check the origin and determine the origin for the response.protected booleanDefaultCorsProcessor.handleInternal(ServerWebExchange exchange, CorsConfiguration config, boolean preFlightRequest) Handle the given request.booleanCorsProcessor.process(CorsConfiguration configuration, ServerWebExchange exchange) Process a request using the givenCorsConfiguration.booleanDefaultCorsProcessor.process(CorsConfiguration config, ServerWebExchange exchange) voidUrlBasedCorsConfigurationSource.registerCorsConfiguration(String path, CorsConfiguration config) Register aCorsConfigurationfor the specified path pattern.Method parameters in org.springframework.web.cors.reactive with type arguments of type CorsConfigurationModifier and TypeMethodDescriptionvoidUrlBasedCorsConfigurationSource.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 CorsConfigurationCorsRegistration.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 registeredCorsConfigurationobjects, 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 givenCorsConfigurationto 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 CorsConfigurationAbstractHandlerMapping.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 TypeMethodDescriptionvoidAbstractHandlerMapping.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 CorsConfigurationAbstractHandlerMethodMapping.getCorsConfiguration(Object handler, ServerWebExchange exchange) protected CorsConfigurationAbstractHandlerMethodMapping.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 CorsConfigurationRequestMappingHandlerMapping.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 RuntimeBeanReferenceMvcNamespaceUtils.registerCorsConfigurations(Map<String, CorsConfiguration> corsConfigurations, ParserContext context, Object source) Registers aMap<String, CorsConfiguration>(mappedCorsConfigurations) 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 CorsConfigurationCorsRegistration.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 registeredCorsConfigurationobjects, keyed by path pattern.protected final Map<String,CorsConfiguration> WebMvcConfigurationSupport.getCorsConfigurations()Return the registeredCorsConfigurationobjects, keyed by path pattern.Methods in org.springframework.web.servlet.config.annotation with parameters of type CorsConfigurationModifier and TypeMethodDescriptionCorsRegistration.combine(CorsConfiguration other) Apply the givenCorsConfigurationto 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 TypeMethodDescriptionprotected CorsConfigurationAbstractHandlerMapping.getCorsConfiguration(Object handler, HttpServletRequest request) Retrieve the CORS configuration for the given handler.protected CorsConfigurationAbstractHandlerMethodMapping.getCorsConfiguration(Object handler, HttpServletRequest request) HandlerMappingIntrospector.getCorsConfiguration(HttpServletRequest request) protected CorsConfigurationAbstractHandlerMethodMapping.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 HandlerExecutionChainAbstractHandlerMapping.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 TypeMethodDescriptionvoidAbstractHandlerMapping.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 CorsConfigurationRequestMappingHandlerMapping.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 TypeMethodDescriptionvoidResourceHttpRequestHandler.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 CorsConfigurationAbstractSockJsService.corsConfigurationMethods in org.springframework.web.socket.sockjs.support that return CorsConfigurationModifier and TypeMethodDescriptionAbstractSockJsService.getCorsConfiguration(HttpServletRequest request) SockJsHttpRequestHandler.getCorsConfiguration(HttpServletRequest request)