From a0967135792d7f8d98f0104afee2252515455959 Mon Sep 17 00:00:00 2001 From: Micah Zoltu Date: Wed, 8 Mar 2017 17:10:15 -0800 Subject: [PATCH] Adds support for extended headers in CORS requests. Fixes #3762. Details about parameter: https://github.com/rs/cors/blob/a62a804a8a009876ca59105f7899938a1349f4b3/cors.go#L50-L54 --- swarm/api/http/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go index a616966780..ae113750ff 100644 --- a/swarm/api/http/server.go +++ b/swarm/api/http/server.go @@ -82,6 +82,7 @@ func StartHttpServer(api *api.Api, server *Server) { AllowedOrigins: allowedOrigins, AllowedMethods: []string{"POST", "GET", "DELETE", "PATCH", "PUT"}, MaxAge: 600, + AllowedHeaders: []string{"*"}, }) hdlr := c.Handler(serveMux)