N8N docker origin header issue

Hello N8N experts

I’m a beginner with N8N but find it very versatile. I’ve managed to install it on a local Docker Desktop environnement on my computer.

Now I’m trying to host it on a docker server with the use of named URL’s instead of localhost.

The installation was ok and I’ve managed to activate the licence key from the web admin.

But when I go inside a new workflow, I’ve noticed in the right upper corner an error of connection.

Digging inside my container logs revealed a recurrent issue
Origin header does NOT match the expected origin. (Origin: “https://n8n.mysite.com”, Expected: “wss://n8n.,mysite.com”)

Information on my n8n setup

  • n8n version: 1.95.2
  • Database posgresql
  • Running n8n via Docker
  • Operating system Ubuntu

Many thanks in advance

Did you use à docker-compose.yml or the docker image from the repo ?

Hello,
I finally find the solution in another post :

The problem was the docker URL in my compose file. I was unable to get the latest version.

It was :

  • image: docker.n8n.io/n8nio/n8n
    

instead of the correct one :

  • image: n8nio/n8n
    

What’s the difference between this 2 URL’s ?

Thanks

1 Like

Docker desktop ??

on the server it’s Docker version 28.1.1, build 4eba377

Command line or GUI ? Maybe the management is different.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.