good morning!!!!

Skip to content
Snippets Groups Projects
Commit d2256244 authored by Felix Lange's avatar Felix Lange Committed by Péter Szilágyi
Browse files

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

This corrects the previous change which broke the build and
was pushed by accident.
parent 26d3a8ca
No related branches found
No related tags found
No related merge requests found
......@@ -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"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment