Adds support for extended headers in CORS requests.

Fixes #3762.  Details about parameter: a62a804a8a/cors.go (L50-L54)
This commit is contained in:
Micah Zoltu 2017-03-08 17:10:15 -08:00 committed by GitHub
parent 544247c918
commit a096713579

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)