rpc: fixup change to not verify websocket origin (#19128)

This corrects the previous change which broke the build and
was pushed by accident.
This commit is contained in:
Felix Lange 2019-02-19 11:58:32 +01:00 committed by Péter Szilágyi
parent 26d3a8ca80
commit d2256244c4

@ -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 // Origin. Non-browser software can put anything in origin and checking it doesn't
// provide additional security. // provide additional security.
if _, ok := req.Header["Origin"]; !ok { if _, ok := req.Header["Origin"]; !ok {
return return nil
} }
// Verify origin against whitelist. // Verify origin against whitelist.
origin := strings.ToLower(req.Header.Get("Origin")) origin := strings.ToLower(req.Header.Get("Origin"))