Package io.meeds.oauth2.server.web
Class OAuthCorsConfigurationSource
java.lang.Object
org.springframework.web.cors.UrlBasedCorsConfigurationSource
io.meeds.oauth2.server.web.OAuthCorsConfigurationSource
- All Implemented Interfaces:
org.springframework.web.cors.CorsConfigurationSource
@Service
public class OAuthCorsConfigurationSource
extends org.springframework.web.cors.UrlBasedCorsConfigurationSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllowedHeaders(String path, String... allowedHeaders) voidaddAllowedMethods(String path, String... allowedMethods) voidaddExposedHeaders(String path, String... exposedHeaders) voidorg.springframework.web.cors.CorsConfigurationgetCorsConfiguration(jakarta.servlet.http.HttpServletRequest request) List<org.springframework.web.util.pattern.PathPattern> voidinit()Methods inherited from class org.springframework.web.cors.UrlBasedCorsConfigurationSource
getCorsConfigurations, registerCorsConfiguration, setAllowInitLookupPath, setAlwaysUseFullPath, setCorsConfigurations, setLookupPathAttributeName, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper
-
Constructor Details
-
OAuthCorsConfigurationSource
public OAuthCorsConfigurationSource()
-
-
Method Details
-
init
@PostConstruct public void init() -
getCorsConfiguration
public org.springframework.web.cors.CorsConfiguration getCorsConfiguration(jakarta.servlet.http.HttpServletRequest request) - Specified by:
getCorsConfigurationin interfaceorg.springframework.web.cors.CorsConfigurationSource- Overrides:
getCorsConfigurationin classorg.springframework.web.cors.UrlBasedCorsConfigurationSource
-
addPaths
-
addExposedHeaders
-
addAllowedHeaders
-
addAllowedMethods
-
getPathPatterns
-