Skip to content

Commit 3ee86a5

Browse files
mexskicanfjl
authored andcommitted
rpc: warn on WebSocket origin mismatch (#15451)
Fixes #15373
1 parent b31cc71 commit 3ee86a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎rpc/websocket.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func wsHandshakeValidator(allowedOrigins []string) func(*websocket.Config, *http
8383
if allowAllOrigins || origins.Has(origin) {
8484
return nil
8585
}
86-
log.Debug(fmt.Sprintf("origin '%s' not allowed on WS-RPC interface\n", origin))
86+
log.Warn(fmt.Sprintf("origin '%s' not allowed on WS-RPC interface\n", origin))
8787
return fmt.Errorf("origin %s not allowed", origin)
8888
}
8989

0 commit comments

Comments
 (0)