{
  "id": 20393617,
  "title": "n8n \"Connection lost\" (code=1008) behind a reverse proxy: seven ways the Origin check failed in one 80-comment GitHub thread",
  "url": "https://urgent.news/2026/11/17/n8n-connection-lost-code-1008-behind-a-reverse-proxy-seven-ways-the",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-17T06:51:07.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/grain64/n8n-connection-lost-code1008-behind-a-reverse-proxy-seven-ways-the-origin-check-failed-in-one-1dp2"
  },
  "original_language": "en",
  "account": "When upgrading to n8n version 1.88, users might experience a \"Connection lost\" error, indicated by a WebSocket push connection refusal. The issue arises because the Origin header in the request does not match the expected origin. The n8n codebase checks for this mismatch and closes the connection with an error code of 1008.\n\nThe source material details seven different ways this check can fail, with fixes varying depending on the n8n version and the reverse proxy used. Six of these fixes have been successful for users, though a seventh remains untested since the thread was marked as \"not planned\" on August 15, 2025.\n\nThe discrepancy lies in how n8n compares the browser's Origin header to the expected origin, which can change based on the n8n version and the reverse proxy configuration. Six fixes address this issue, but they each involve sending different header values from the reverse proxy to n8n, such as setting both Host and Origin explicitly, preserving the original Host header, dropping the port number in the Origin header, or configuring a proxy manager like Nginx Proxy Manager or IIS with ARR.",
  "summary": "After upgrading to n8n 1.88, the editor loads and then says Connection lost . The browser console shows [WebSocketClient] Connection lost, code=1008 . That is the push connection ( /rest/push ) being refused, and the reason is in n8n's log, not the browser: Invalid origin! , or on later versions Origin header does NOT match the expected origin . n8n issue #14653 collected 80 comments between…",
  "key_points": [
    "n8n Connection lost error (code=1008) due to Origin header mismatch",
    "Seven ways this check can fail, each requiring different fixes",
    "Six fixes successful, seventh untested as of August 15, 2025"
  ],
  "editors_take": "The mismatch between browser headers and reverse proxy configurations forces users to manually reconfigure network settings to maintain stable WebSocket connections after the latest n8n version update.",
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}