mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
rpc: fixup change to not verify websocket origin
This corrects the previous change which broke the build and was pushed by accident.
This commit is contained in:
parent
26d3a8ca80
commit
adb7a040e6
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http
|
|||
// Origin. Non-browser software can put anything in origin and checking it doesn't
|
||||
// provide additional security.
|
||||
if _, ok := req.Header["Origin"]; !ok {
|
||||
return
|
||||
return nil
|
||||
}
|
||||
// Verify origin against whitelist.
|
||||
origin := strings.ToLower(req.Header.Get("Origin"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue