Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for corsHandler (0.05 sec)

  1. cmd/api-router.go

    	apiRouter.MethodNotAllowedHandler = collectAPIStats("methodnotallowed", httpTraceAll(methodNotAllowedHandler("S3")))
    }
    
    // corsHandler handler for CORS (Cross Origin Resource Sharing)
    func corsHandler(handler http.Handler) http.Handler {
    	commonS3Headers := []string{
    		xhttp.Date,
    		xhttp.ETag,
    		xhttp.ServerInfo,
    		xhttp.Connection,
    		xhttp.AcceptRanges,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 15:25:16 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. cmd/server-main.go

    		}
    		// Allow grid to start after registering all services.
    		close(globalGridStart)
    		close(globalLockGridStart)
    
    		httpServer := xhttp.NewServer(getServerListenAddrs()).
    			UseHandler(setCriticalErrorHandler(corsHandler(handler))).
    			UseTLSConfig(newTLSConfig(getCert)).
    			UseIdleTimeout(globalServerCtxt.IdleTimeout).
    			UseReadHeaderTimeout(globalServerCtxt.ReadHeaderTimeout).
    			UseBaseContext(GlobalContext).
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 35.2K bytes
    - Viewed (1)
Back to top