diff options
author | Micah Zoltu <micah@zoltu.net> | 2017-03-16 11:34:08 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-03-16 11:34:08 +0800 |
commit | 4e4e5fca541ae2c2c0bf5cde0b556fedfafa8d54 (patch) | |
tree | a71a23a920976cb3e0861536b01627c8be71d5c7 /swarm | |
parent | 61ede86737d57f62cb09de013191fc430d1dd3a2 (diff) | |
download | go-tangerine-4e4e5fca541ae2c2c0bf5cde0b556fedfafa8d54.tar go-tangerine-4e4e5fca541ae2c2c0bf5cde0b556fedfafa8d54.tar.gz go-tangerine-4e4e5fca541ae2c2c0bf5cde0b556fedfafa8d54.tar.bz2 go-tangerine-4e4e5fca541ae2c2c0bf5cde0b556fedfafa8d54.tar.lz go-tangerine-4e4e5fca541ae2c2c0bf5cde0b556fedfafa8d54.tar.xz go-tangerine-4e4e5fca541ae2c2c0bf5cde0b556fedfafa8d54.tar.zst go-tangerine-4e4e5fca541ae2c2c0bf5cde0b556fedfafa8d54.zip |
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
Diffstat (limited to 'swarm')
-rw-r--r-- | swarm/api/http/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go index a61696678..ae113750f 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) |