openclaw - 💡(How to fix) Fix [Bug]: Control UI “origin not allowed” when accessing via SSH tunnel from NemoClaw/OpenShell sandbox (OpenClaw 2026.3.11) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#60098Fetched 2026-04-08 02:36:21
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

草擬一份可以直接貼到 GitHub / Discord 的英文求助內容

Here is a clean English template you can copy‑paste to GitHub / Discord. You只需要把 <host-ip> 改成你自己的伺服器 IP(或用 xxx.xxx.xxx.xxx 遮掉)。

Title (for GitHub issue): Control UI “origin not allowed” when accessing via SSH tunnel from NemoClaw/OpenShell sandbox (OpenClaw 2026.3.11)

Body:

text Environment

  • OpenClaw version: 2026.3.11 (29dc654)
  • Running inside: NVIDIA NemoClaw / OpenShell sandbox
    • sandbox name: buddy
    • namespace: openshell
  • Host OS: Ubuntu 22.04 on a VPS (DigitalOcean droplet)
  • Client: Windows 11 PC with Chrome, connecting over SSH port forwarding

Setup

  1. Inside the sandbox I start the dashboard:

    nemoclaw buddy connect # from host, to enter sandbox openclaw --version # OpenClaw 2026.3.11 (29dc654) nohup openclaw dashboard >dashboard.log 2>&1 &

    In the sandbox:

  2. On the host I forward the port from host → sandbox:

    openshell sandbox list

    buddy / openshell / Ready

    openshell forward start 18789 buddy

    Output: "✓ Forwarding port 18789 to sandbox buddy Access at: http://127.0.0.1:18789/ Press Ctrl+C to stop"

  3. From my Windows PC I forward from Windows → host:

    ssh -N -L 18789:127.0.0.1:18789 root@<host-ip>

  4. In the browser on Windows I open:

    http://localhost:18789/chat?session=main

    The UI loads, I see the OpenClaw Control / Gateway Dashboard.

Problem

  • The chat UI shows a red error and I cannot type anything:

    origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)

  • This error remains even after restarting the dashboard and clearing the browser cache/incognito.

  • The bottom bar says: "Connect to the gateway to start chatting..." and the input box stays disabled.

What I already tried

  1. Config file inside the sandbox: ~/.config/openclaw/config.json

    { "gateway": { "bind": "127.0.0.1", "port": 18789, "controlUi": { "allowedOrigins": [ "http://localhost:18789", "http://127.0.0.1:18789", "http://localhost", "http://127.0.0.1" ] } } }

    Then restart:

    pkill -f "openclaw dashboard" || true pkill -f "openclaw gateway" || true nohup openclaw dashboard >dashboard.log 2>&1 &

  2. Starting dashboard with env vars (tried both):

    GATEWAY_CONTROL_UI_ALLOWED_ORIGINS="http://localhost:18789,http://127.0.0.1:18789,http://localhost,http://127.0.0.1"
    openclaw dashboard ...

    GATEWAY_CONTROL_UI_DISABLE_ORIGIN_CHECK=true
    openclaw dashboard ...

  3. After each change I confirm:

    • In the sandbox, ss still shows 127.0.0.1:18789 listening.
    • dashboard.log shows the Dashboard URL and the usual "No GUI detected" message, but there is NO "origin not allowed" line in the log at all.

However, in the browser I still always see:

origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)

Questions

  • Is Control UI origin checking in 2026.3.11 currently ignoring config/env when running inside a NemoClaw/OpenShell sandbox?
  • Is there a recommended way to allow remote Control UI access (via SSH port forwarding) in this setup?
  • Is this a known bug in 2026.3.11, and if so is there a workaround or config flag that actually disables the origin check?

Any guidance, example config, or confirmation that this is a known issue would be greatly appreciated. I’m happy to test patches or provide more logs if needed.

Error Message

  • The chat UI shows a red error and I cannot type anything:
  • This error remains even after restarting the dashboard and clearing the browser cache/incognito.

Root Cause

草擬一份可以直接貼到 GitHub / Discord 的英文求助內容

Here is a clean English template you can copy‑paste to GitHub / Discord. You只需要把 <host-ip> 改成你自己的伺服器 IP(或用 xxx.xxx.xxx.xxx 遮掉)。

Title (for GitHub issue): Control UI “origin not allowed” when accessing via SSH tunnel from NemoClaw/OpenShell sandbox (OpenClaw 2026.3.11)

Body:

text Environment

  • OpenClaw version: 2026.3.11 (29dc654)
  • Running inside: NVIDIA NemoClaw / OpenShell sandbox
    • sandbox name: buddy
    • namespace: openshell
  • Host OS: Ubuntu 22.04 on a VPS (DigitalOcean droplet)
  • Client: Windows 11 PC with Chrome, connecting over SSH port forwarding

Setup

  1. Inside the sandbox I start the dashboard:

    nemoclaw buddy connect # from host, to enter sandbox openclaw --version # OpenClaw 2026.3.11 (29dc654) nohup openclaw dashboard >dashboard.log 2>&1 &

    In the sandbox:

  2. On the host I forward the port from host → sandbox:

    openshell sandbox list

    buddy / openshell / Ready

    openshell forward start 18789 buddy

    Output: "✓ Forwarding port 18789 to sandbox buddy Access at: http://127.0.0.1:18789/ Press Ctrl+C to stop"

  3. From my Windows PC I forward from Windows → host:

    ssh -N -L 18789:127.0.0.1:18789 root@<host-ip>

  4. In the browser on Windows I open:

    http://localhost:18789/chat?session=main

    The UI loads, I see the OpenClaw Control / Gateway Dashboard.

Problem

  • The chat UI shows a red error and I cannot type anything:

    origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)

  • This error remains even after restarting the dashboard and clearing the browser cache/incognito.

  • The bottom bar says: "Connect to the gateway to start chatting..." and the input box stays disabled.

What I already tried

  1. Config file inside the sandbox: ~/.config/openclaw/config.json

    { "gateway": { "bind": "127.0.0.1", "port": 18789, "controlUi": { "allowedOrigins": [ "http://localhost:18789", "http://127.0.0.1:18789", "http://localhost", "http://127.0.0.1" ] } } }

    Then restart:

    pkill -f "openclaw dashboard" || true pkill -f "openclaw gateway" || true nohup openclaw dashboard >dashboard.log 2>&1 &

  2. Starting dashboard with env vars (tried both):

    GATEWAY_CONTROL_UI_ALLOWED_ORIGINS="http://localhost:18789,http://127.0.0.1:18789,http://localhost,http://127.0.0.1"
    openclaw dashboard ...

    GATEWAY_CONTROL_UI_DISABLE_ORIGIN_CHECK=true
    openclaw dashboard ...

  3. After each change I confirm:

    • In the sandbox, ss still shows 127.0.0.1:18789 listening.
    • dashboard.log shows the Dashboard URL and the usual "No GUI detected" message, but there is NO "origin not allowed" line in the log at all.

However, in the browser I still always see:

origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)

Questions

  • Is Control UI origin checking in 2026.3.11 currently ignoring config/env when running inside a NemoClaw/OpenShell sandbox?
  • Is there a recommended way to allow remote Control UI access (via SSH port forwarding) in this setup?
  • Is this a known bug in 2026.3.11, and if so is there a workaround or config flag that actually disables the origin check?

Any guidance, example config, or confirmation that this is a known issue would be greatly appreciated. I’m happy to test patches or provide more logs if needed.

Fix Action

Fix / Workaround

Questions

  • Is Control UI origin checking in 2026.3.11 currently ignoring config/env when running inside a NemoClaw/OpenShell sandbox?
  • Is there a recommended way to allow remote Control UI access (via SSH port forwarding) in this setup?
  • Is this a known bug in 2026.3.11, and if so is there a workaround or config flag that actually disables the origin check?

Any guidance, example config, or confirmation that this is a known issue would be greatly appreciated. I’m happy to test patches or provide more logs if needed.

Code Example

none
RAW_BUFFERClick to expand / collapse

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

草擬一份可以直接貼到 GitHub / Discord 的英文求助內容

Here is a clean English template you can copy‑paste to GitHub / Discord. You只需要把 <host-ip> 改成你自己的伺服器 IP(或用 xxx.xxx.xxx.xxx 遮掉)。

Title (for GitHub issue): Control UI “origin not allowed” when accessing via SSH tunnel from NemoClaw/OpenShell sandbox (OpenClaw 2026.3.11)

Body:

text Environment

  • OpenClaw version: 2026.3.11 (29dc654)
  • Running inside: NVIDIA NemoClaw / OpenShell sandbox
    • sandbox name: buddy
    • namespace: openshell
  • Host OS: Ubuntu 22.04 on a VPS (DigitalOcean droplet)
  • Client: Windows 11 PC with Chrome, connecting over SSH port forwarding

Setup

  1. Inside the sandbox I start the dashboard:

    nemoclaw buddy connect # from host, to enter sandbox openclaw --version # OpenClaw 2026.3.11 (29dc654) nohup openclaw dashboard >dashboard.log 2>&1 &

    In the sandbox:

  2. On the host I forward the port from host → sandbox:

    openshell sandbox list

    buddy / openshell / Ready

    openshell forward start 18789 buddy

    Output: "✓ Forwarding port 18789 to sandbox buddy Access at: http://127.0.0.1:18789/ Press Ctrl+C to stop"

  3. From my Windows PC I forward from Windows → host:

    ssh -N -L 18789:127.0.0.1:18789 root@<host-ip>

  4. In the browser on Windows I open:

    http://localhost:18789/chat?session=main

    The UI loads, I see the OpenClaw Control / Gateway Dashboard.

Problem

  • The chat UI shows a red error and I cannot type anything:

    origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)

  • This error remains even after restarting the dashboard and clearing the browser cache/incognito.

  • The bottom bar says: "Connect to the gateway to start chatting..." and the input box stays disabled.

What I already tried

  1. Config file inside the sandbox: ~/.config/openclaw/config.json

    { "gateway": { "bind": "127.0.0.1", "port": 18789, "controlUi": { "allowedOrigins": [ "http://localhost:18789", "http://127.0.0.1:18789", "http://localhost", "http://127.0.0.1" ] } } }

    Then restart:

    pkill -f "openclaw dashboard" || true pkill -f "openclaw gateway" || true nohup openclaw dashboard >dashboard.log 2>&1 &

  2. Starting dashboard with env vars (tried both):

    GATEWAY_CONTROL_UI_ALLOWED_ORIGINS="http://localhost:18789,http://127.0.0.1:18789,http://localhost,http://127.0.0.1"
    openclaw dashboard ...

    GATEWAY_CONTROL_UI_DISABLE_ORIGIN_CHECK=true
    openclaw dashboard ...

  3. After each change I confirm:

    • In the sandbox, ss still shows 127.0.0.1:18789 listening.
    • dashboard.log shows the Dashboard URL and the usual "No GUI detected" message, but there is NO "origin not allowed" line in the log at all.

However, in the browser I still always see:

origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)

Questions

  • Is Control UI origin checking in 2026.3.11 currently ignoring config/env when running inside a NemoClaw/OpenShell sandbox?
  • Is there a recommended way to allow remote Control UI access (via SSH port forwarding) in this setup?
  • Is this a known bug in 2026.3.11, and if so is there a workaround or config flag that actually disables the origin check?

Any guidance, example config, or confirmation that this is a known issue would be greatly appreciated. I’m happy to test patches or provide more logs if needed.

Steps to reproduce

See description above.

Expected behavior

Control UI should allow origin http://localhost:18789.

Actual behavior

UI shows "origin not allowed..." and input is disabled.

OpenClaw version

2026.03.11

Operating system

ubuntu 22.04

Install method

docker

Model

minimax

Provider / routing chain

openclaw

Additional provider/model setup details

none

Logs, screenshots, and evidence

none

Impact and severity

web ui unavailable

Additional information

none

extent analysis

TL;DR

The "origin not allowed" error in the Control UI may be due to the origin checking mechanism ignoring configuration settings when running inside a NemoClaw/OpenShell sandbox, and a potential workaround could involve directly configuring the gateway.controlUi.allowedOrigins setting or disabling origin checking via environment variables.

Guidance

  1. Verify Configuration: Double-check that the gateway.controlUi.allowedOrigins setting in the ~/.config/openclaw/config.json file is correctly formatted and includes all necessary origins, such as http://localhost:18789 and http://127.0.0.1:18789.
  2. Environment Variable Approach: Try setting the GATEWAY_CONTROL_UI_ALLOWED_ORIGINS environment variable to include the specific origins you need, ensuring it's set before starting the openclaw dashboard command.
  3. Disable Origin Checking: If the above steps don't work, attempt to disable origin checking entirely by setting GATEWAY_CONTROL_UI_DISABLE_ORIGIN_CHECK=true before starting the dashboard, though this should be done with caution due to potential security implications.
  4. Sandbox Configuration: Investigate if there are any specific configurations or settings within the NemoClaw/OpenShell sandbox that could be interfering with how OpenClaw handles origin checking.

Example

No specific code example is provided due to the nature of the issue, but ensuring your config.json includes something like:

{
  "gateway": {
    "bind": "127.0.0.1",
    "port": 18789,
    "controlUi": {
      "allowedOrigins": [
        "http://localhost:18789",
        "http://127.0.0.1:18789"
      ]
    }
  }
}

could be a starting point.

Notes

The effectiveness of these steps may depend on the specific version of OpenClaw and the configuration of the NemoClaw/OpenShell sandbox. Directly disabling origin checking should be approached with caution due to security considerations.

Recommendation

Apply the workaround by directly configuring the gateway.controlUi.allowedOrigins setting or disabling origin checking via environment variables, as these are the most straightforward approaches given the current information.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Control UI should allow origin http://localhost:18789.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING