rpc: add support for extended headers in CORS requests (#3783)

Fixes #3762.  Details about parameter:
https://github.com/rs/cors/blob/a62a804a8a009876ca59105f7899938a1349f4b3/cors.go#L50-L54
This commit is contained in:
Micah Zoltu
2017-03-16 04:34:08 +01:00
committed by Felix Lange
parent 61ede86737
commit 4e4e5fca54
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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)