rpc: add support for extended headers in CORS requests (#3783)
Fixes #3762. Details about parameter:
a62a804a8a/cors.go (L50-L54)
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user