mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
Merge 95c210610f into 1da33028ce
This commit is contained in:
commit
25e6234026
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http
|
|||
log.Debug(fmt.Sprintf("Allowed origin(s) for WS RPC interface %v\n", origins.List()))
|
||||
|
||||
f := func(cfg *websocket.Config, req *http.Request) error {
|
||||
origin := strings.ToLower(req.Header.Get("Origin"))
|
||||
origin := strings.ToLower(req.Header.Get("origin"))
|
||||
if allowAllOrigins || origins.Has(origin) {
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue