rpc: warn on WebSocket origin mismatch (#15451)

Fixes #15373
pull/15456/head
Benoit Verkindt 7 years ago committed by Felix Lange
parent b31cc71ff6
commit 3ee86a57f3
  1. 2
      rpc/websocket.go

@ -83,7 +83,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http
if allowAllOrigins || origins.Has(origin) {
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)
}

Loading…
Cancel
Save