Fix the error that blocks dashboard access after a restart, URL change, or moving from local to VPS.
The dashboard URL you're opening is not in your gateway's allowed origin list. The gateway is rejecting the browser for safety.
Grab only protocol + host + port (for example: https://my-agent.example.com or http://192.168.1.10:3010).
A trailing slash or wrong port can make it fail. Origins must match exactly.
In your gateway config, add the exact origin to the allow-list and save.
Apply config changes with a clean restart, then wait 20-30 seconds.
Close duplicate tabs, open one tab to the same URL, and test again. If needed, hard refresh once.
Control UI loads without the origin error and you can run a basic command.
You likely still have a local origin allowed, but not the new VPS domain. Add the VPS origin explicitly and restart.
Scheme mismatch is a hard fail. https:// and http:// are different origins.
They may be using different URLs (domain vs IP, or different ports). Add each legitimate origin you actually use.
If it still fails, post this evidence so support can help quickly:
gateway.controlUi.allowedOrigins values (redact secrets)