diff --git a/rpc/http.go b/rpc/http.go index 7d4fe5d474..5a07702316 100644 --- a/rpc/http.go +++ b/rpc/http.go @@ -171,6 +171,7 @@ func newCorsHandler(srv *Server, corsString string) http.Handler { AllowedOrigins: allowedOrigins, AllowedMethods: []string{"POST", "GET"}, MaxAge: 600, + AllowedHeaders: []string{"*"}, }) return c.Handler(srv) } 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)