rpc: warn on WebSocket origin mismatch (#15451)

Fixes #15373
This commit is contained in:
Benoit Verkindt 2017-11-10 01:22:06 -08:00 committed by Felix Lange
parent b31cc71ff6
commit 3ee86a57f3

@ -83,7 +83,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http
if allowAllOrigins || origins.Has(origin) { if allowAllOrigins || origins.Has(origin) {
return nil return nil
} }
log.Debug(fmt.Sprintf("origin '%s' not allowed on WS-RPC interface\n", origin)) log.Warn(fmt.Sprintf("origin '%s' not allowed on WS-RPC interface\n", origin))
return fmt.Errorf("origin %s not allowed", origin) return fmt.Errorf("origin %s not allowed", origin)
} }