Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CorsAllowOrigin (0.09 sec)

  1. internal/config/api/api.go

    		GzipObjects:   gzipObjects,
    		RootAccess:    rootAccess,
    	}
    
    	var corsAllowOrigin []string
    	corsList := env.Get(EnvAPICorsAllowOrigin, kvs.Get(apiCorsAllowOrigin))
    	if corsList == "" {
    		corsAllowOrigin = []string{"*"} // defaults to '*'
    	} else {
    		corsAllowOrigin = strings.Split(corsList, ",")
    		for _, cors := range corsAllowOrigin {
    			if cors == "" {
    				return cfg, errors.New("invalid cors value")
    			}
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 16 08:43:49 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. cmd/handler-api.go

    	if clusterDeadline == 0 {
    		clusterDeadline = 10 * time.Second
    	}
    	t.clusterDeadline = clusterDeadline
    	corsAllowOrigin := cfg.CorsAllowOrigin
    	if len(corsAllowOrigin) == 0 {
    		corsAllowOrigin = []string{"*"}
    	}
    	t.corsAllowOrigins = corsAllowOrigin
    
    	var apiRequestsMaxPerNode int
    	if cfg.RequestsMax <= 0 {
    		maxSetDrives := slices.Max(setDriveCounts)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 26 17:07:10 UTC 2024
    - 10.4K bytes
    - Viewed (0)
Back to top