OpenClaw “origin not allowed” fix
Problem statement: Control UI loads, but instead of chat you see
origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)
This usually appears when deploying through FRP/Nginx/Caddy or public IP forwarding.
- GitHub issue #29809 created 2026-02-28, updated 2026-03-01 with reproducible cloud + FRP setup.
- Multiple teams reporting "page reachable but Control UI blocked" pattern after moving from local to public deployment.
Actionable fix sequence
- Choose one canonical UI URL (for example:
https://agent.example.com). - Add exact origin allowlist in
~/.openclaw/openclaw.json:{ "gateway": { "controlUi": { "allowedOrigins": ["https://agent.example.com"] } } } - Restart gateway:
openclaw gateway restart. - Proxy hygiene: make sure your reverse proxy forwards
HostandX-Forwarded-Protoconsistently. - Retest in incognito to avoid stale browser cache/token state.
What usually causes repeated failures
- Mixing IP and domain access (e.g., open by IP once, domain next).
- Allowing the wrong scheme (
httpvshttpsmismatch). - Changing forwarded host in FRP/Nginx while keeping old origin list.
- Using wildcard origins in one layer while another layer enforces strict host checks.
Fix once. Stop recurring origin-policy failures.
If this keeps coming back, you can move your existing setup to managed OpenClaw cloud hosting instead of rebuilding the same stack. Import your current instance, keep your context, and move onto a runtime with lower ops overhead.
- Import flow in ~1 minute
- Keep your current instance context
- Run with managed security and reliability defaults
If you would rather compare options first, review OpenClaw cloud hosting or see the best OpenClaw hosting options before deciding.
If you're already updating gateway and browser config, this is a good time to move to managed hosting: keep your instance updated and use Chrome Extension relay for real local browser tab control.
See OpenClaw cloud hosting See Chrome Extension feature
For a broader decision view, compare managed hosting vs self-hosted VPS or review the best OpenClaw hosting options.
FAQ
Can I keep both IP and domain allowed?
Yes, but only if both are intentional. Keep the list explicit and minimal.
Why did it work locally but fail in cloud?
Cloud and proxy setups introduce browser-origin differences that local loopback deployments don’t have.