Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for corsAllowOrigins (0.11 sec)

  1. cmd/handler-api.go

    }
    
    func (t *apiConfig) getCorsAllowOrigins() []string {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    	if len(t.corsAllowOrigins) == 0 {
    		return []string{"*"}
    	}
    
    	corsAllowOrigins := make([]string, len(t.corsAllowOrigins))
    	copy(corsAllowOrigins, t.corsAllowOrigins)
    	return corsAllowOrigins
    }
    
    func (t *apiConfig) getStaleUploadsCleanupInterval() time.Duration {
    	t.mu.RLock()
    	defer t.mu.RUnlock()
    
    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