Package io.jmix.core

Class CorsProperties

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

@ConfigurationProperties(prefix="jmix.cors") @ConstructorBinding 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, @DefaultValue("/**") List<String> urlPatterns, Boolean allowCredentials)
  • Method Details

    • getAllowedOrigins

      public List<String> getAllowedOrigins()
    • getAllowedHeaders

      public List<String> getAllowedHeaders()
    • getAllowedMethods

      public List<String> getAllowedMethods()
    • getUrlPatterns

      public List<String> getUrlPatterns()
    • getAllowCredentials

      @Nullable public Boolean getAllowCredentials()