mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 14:46:42 +00:00
Adds support for extended headers in CORS requests.
Fixes #3762. Details about parameter: a62a804a8a/cors.go (L50-L54)
This commit is contained in:
parent
544247c918
commit
a096713579
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue