Exemplo n.º 1
0
 public CorsFluentSettings ForOrigins(params string[] origins)
 {
     if (origins == null || origins.Length == 0)
     {
         throw new ArgumentException("origins is null or empty.");
     }
     settings.SetOrigins(origins);
     return(settings);
 }
        public CorsFluentSettings ForAllOrigins()
        {
            var settings = new CorsFluentSettings(this);

            settings.SetResources(null);
            settings.SetOrigins(null);
            return(settings);
        }
 public CorsFluentSettings ForAllOrigins()
 {
     var settings = new CorsFluentSettings(this);
     settings.SetResources(null);
     settings.SetOrigins(null);
     return settings;
 }
 public CorsFluentSettings ForOrigins(params string[] origins)
 {
     if (origins == null || origins.Length == 0)
     {
         throw new ArgumentException("origins is null or empty.");
     }
     var settings = new CorsFluentSettings(this);
     settings.SetResources(null);
     settings.SetOrigins(origins);
     return settings;
 }