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
- 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. - 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. - Nginx Proxy Manager: Turn on the “Websockets support” switch for the proxy host.
- Custom Nginx configuration: In the
locationblock, addproxy_http_version 1.1;,proxy_set_header Upgrade $http_upgrade;andproxy_set_header Connection "upgrade";, and alsoproxy_buffering off;for smooth streaming. Then reload Nginx. - Set the
CORS_ALLOW_ORIGINenvironment variable in Open WebUI to all addresses you use to open the site, separated by semicolons, for exampleCORS_ALLOW_ORIGIN="https://ki.example.de;http://localhost:3000". With Docker, pass it with-eand restart the container. - If everything runs over HTTPS, also set
WEBUI_URLto your address withhttps://. 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:
- Your own ChatGPT with Ollama and Open WebUI
Run a language model locally on Windows - with the Ollama app, suitable models for 8 to 24 GB, context length, command line, and Open WebUI… - Chat with your own documents (AnythingLLM)
Set up AnythingLLM Desktop on Windows, load PDFs into a workspace, and ask questions locally — with sources and privacy.
Terms for this
Similar errors
- Open WebUI or AnythingLLM can't find Ollama
- Ports are not available: … bind: An attempt was made to access a socket in a way forbidden by its access permissions (Port is reserved by Windows)
- Ollama: model "…" not found, try pulling it first (model missing on this server)
- could not select device driver "" with capabilities: [[gpu]] (Docker cannot pass the graphics card through to the container)
- Docker Desktop: WSL needs updating / WSL 2 installation is incomplete
Sources
- https://docs.openwebui.com/troubleshooting/connection-error
- https://docs.openwebui.com/reference/https/nginx
- https://github.com/miguelgrinberg/python-engineio/blob/main/src/engineio/async_server.py
Checked on Oct 27, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.