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.-
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.