Free | No tracking | Every fact with a source|German and English

Error / Home and connection

Open WebUI: WebSocket connection failed / is not an accepted origin (page keeps loading behind reverse proxy)

Open WebUI keeps loading endlessly behind a reverse proxy (e.g. Nginx Proxy Manager), replies don’t come through, or login fails because the WebSocket connection is failing.

The message

https://yourdomain.com is not an accepted origin. (Browser-Konsole: WebSocket-Verbindung zu /ws/socket.io schlägt fehl)

Affects: Open WebUI, Docker Desktop

Why is this happening?

Since version 0.5.0, Open WebUI needs a working WebSocket connection under /ws/socket.io. A reverse proxy must explicitly pass this connection through (headers Upgrade and Connection). Open WebUI also rejects WebSocket connections from addresses not listed in CORS_ALLOW_ORIGIN, and then writes “… is not an accepted origin” to the log.

How to fix it

  1. First test without a proxy: Open Open WebUI directly via http://<IP-des-Rechners>:3000. If it works there, the problem is with the proxy.
  2. In the browser, press F12 → tab “Network” → filter “WS” to check whether the WebSocket connection is established, and look for errors in the console. You can view Open WebUI’s logs with docker logs open-webui.
  3. Nginx Proxy Manager: Turn on the “Websockets support” switch for the proxy host.
  4. Custom Nginx configuration: In the location block, add proxy_http_version 1.1;, proxy_set_header Upgrade $http_upgrade; and proxy_set_header Connection "upgrade";, and also proxy_buffering off; for smooth streaming. Then reload Nginx.
  5. Set the CORS_ALLOW_ORIGIN environment variable in Open WebUI to all addresses you use to open the site, separated by semicolons, for example CORS_ALLOW_ORIGIN="https://ki.example.de;http://localhost:3000". With Docker, pass it with -e and restart the container.
  6. If everything runs over HTTPS, also set WEBUI_URL to your address with https://. If Open WebUI is already running, change this in the admin settings under General → WebUI URL.

Better not: Don’t just disable ENABLE_WEBSOCKET_SUPPORT: according to the docs, that isn’t officially supported; the cleaner fix is to configure the proxy correctly.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.