mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +00:00
Merge 1fcf462195 into ab7adb0027
This commit is contained in:
commit
b2f39e32c6
1 changed files with 1 additions and 0 deletions
|
|
@ -170,6 +170,7 @@ func newCorsHandler(srv *Server, corsString string) http.Handler {
|
||||||
c := cors.New(cors.Options{
|
c := cors.New(cors.Options{
|
||||||
AllowedOrigins: allowedOrigins,
|
AllowedOrigins: allowedOrigins,
|
||||||
AllowedMethods: []string{"POST", "GET"},
|
AllowedMethods: []string{"POST", "GET"},
|
||||||
|
MaxAge: 3600,
|
||||||
})
|
})
|
||||||
return c.Handler(srv)
|
return c.Handler(srv)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue