Class CorsSecurityConfigurer

java.lang.Object
org.bardframework.commons.web.cors.CorsSecurityConfigurer
All Implemented Interfaces:
SecurityConfigurer

public class CorsSecurityConfigurer extends Object implements SecurityConfigurer
  • Constructor Details

    • CorsSecurityConfigurer

      public CorsSecurityConfigurer(List<String> corsMapping, List<String> corsAllowedOrigins, List<String> corsAllowedMethods, List<String> corsAllowedHeaders, List<String> corsExposedHeaders, boolean corsAllowCredentials, int corsMaxAge)
  • Method Details

    • configure

      public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity httpSecurity)
      Specified by:
      configure in interface SecurityConfigurer
    • getCorsMapping

      protected List<String> getCorsMapping()
    • getCorsAllowedOrigins

      protected List<String> getCorsAllowedOrigins()
    • getCorsAllowedMethods

      protected List<String> getCorsAllowedMethods()
    • getCorsAllowedHeaders

      protected List<String> getCorsAllowedHeaders()
    • getCorsExposedHeaders

      protected List<String> getCorsExposedHeaders()
    • isCorsAllowCredentials

      protected boolean isCorsAllowCredentials()
    • getCorsMaxAge

      protected int getCorsMaxAge()
    • getCorsFilter

      protected CorsFilter getCorsFilter()