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 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:
      getCorsConfiguration in interface org.springframework.web.cors.CorsConfigurationSource
      Overrides:
      getCorsConfiguration in class org.springframework.web.cors.UrlBasedCorsConfigurationSource
    • addPaths

      public void addPaths(String... paths)
    • addExposedHeaders

      public void addExposedHeaders(String path, String... exposedHeaders)
    • addAllowedHeaders

      public void addAllowedHeaders(String path, String... allowedHeaders)
    • addAllowedMethods

      public void addAllowedMethods(String path, String... allowedMethods)
    • getPathPatterns

      public List<org.springframework.web.util.pattern.PathPattern> getPathPatterns()