Package io.jmix.core

Class CorsProperties

java.lang.Object
io.jmix.core.CorsProperties

@ConfigurationProperties(prefix="jmix.cors") public class CorsProperties extends Object
CORS settings used by default CorsConfigurationSource provided by Jmix core module auto-configuration.
  • Constructor Details

    • CorsProperties

      public CorsProperties(@DefaultValue("*") List<String> allowedOrigins, @DefaultValue("*") List<String> allowedHeaders, @DefaultValue("*") List<String> allowedMethods, List<String> exposedHeaders, @DefaultValue("/**") List<String> urlPatterns, Boolean allowCredentials)
  • Method Details

    • getAllowedOrigins

      public List<String> getAllowedOrigins()
    • getAllowedHeaders

      public List<String> getAllowedHeaders()
    • getAllowedMethods

      public List<String> getAllowedMethods()
    • getExposedHeaders

      @Nullable public List<String> getExposedHeaders()
    • getUrlPatterns

      public List<String> getUrlPatterns()
    • getAllowCredentials

      @Nullable public Boolean getAllowCredentials()