Fixing WebSocket Origin Check Rejected Error | Generated by AI

Home 2026.03

The WS is being closed immediately because the origin check is still rejecting it. The browser sends Origin: http://192.168.1.36:18789 with the WS upgrade, and it must match allowedOrigins exactly.

Run both fixes together:

openclaw config set gateway.controlUi.allowedOrigins '["http://192.168.1.36:18789"]'
openclaw config set gateway.controlUi.dangerouslyDisableDeviceAuth true

Then restart:

systemctl --user restart openclaw-gateway.service

The origin must be the exact origin string the browser sends — scheme + host + port, no trailing slash. Since you’re on http://192.168.1.36:18789, that’s the value.

If you want to allow any client on your LAN without listing IPs individually, use "*":

openclaw config set gateway.controlUi.allowedOrigins '["*"]'

Back Donate