Describe the problem/error/question
After I upgrade n8n 1.95.3 on server I got error.
Former version n8n 1.86.1 had no problem.
And I don`t have nginx server on AWS.
What is the error message?
- Workflow screen : Connection lost
- Server logs : Origin header is missing, ResponseError: Invalid origin!
Information on your n8n setup
- n8n version: 1.95.3
- Database: Postgresql
- Running n8n via: Docker compose
- Operating system: ubuntu on AWS EC2
Whole setting of docker-compose.yml
services:
n8n:
image: n8nio/n8n:1.95.3
restart: always
ports:
- "5678:5678"
environment:
- N8N_HOST=test.com
- GENERIC_TIMEZONE=Asia/Seoul
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=test
- N8N_BASIC_AUTH_PASSWORD=test
- N8N_SECURE_COOKIE=false
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=test.com
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_USER=test
- DB_POSTGRESDB_PASSWORD=test
- DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false
- DB_POSTGRESDB_DATABASE=n8n_test
- DB_POSTGRESDB_SCHEMA=n8n_test
- N8N_LOG_LEVEL=debug
- N8N_LOG_OUTPUT=console,file
- DB_LOGGING_ENABLED=true
- DB_LOGGING_OPTIONS=info
- N8N_PUSH_BACKEND=sse
- N8N_WORKFLOW_TAGS_DISABLED=false
- EXECUTIONS_DATA_PRUNE=true
- EXECUTIONS_DATA_MAX_AGE=720
- EXECUTIONS_DATA_PRUNE_MAX_COUNT=200000
- N8N_PUSH_BACKEND = sse
- N8N_PROTOCOL = http
- N8N_PROXY_HOPS = 1
- N8N_EDITOR_BASE_URL=http://test.com
- N8N_PORT=5678
- WEBHOOK_URL=http://test.com
- VUE_APP_URL_BASE_API=test.com
- N8N_DISABLE_PRODUCTION_MAIN_PROCESS=true
- N8N_RESTRICTED_MODE=true
- N8N_ALLOWED_ORIGINS=http://test.com
- N8N_DISABLE_UI_REALTIME=false
volumes:
- n8n_data_1.95.3:/home/node/.n8n
volumes:
n8n_data_1.95.3:
external: true
Error logs
n8n-1 | 2025-06-11T04:39:34.185Z | warn | Origin header is missing {"scopes":["push"],"file":"index.js","function":"handleRequest"}
n8n-1 | ResponseError: Invalid origin!
n8n-1 | at Push.handleRequest (/usr/local/lib/node_modules/n8n/src/push/index.ts:143:10)
n8n-1 | at /usr/local/lib/node_modules/n8n/src/push/index.ts:100:10
n8n-1 | at Layer.handleRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/router/lib/layer.js:152:17)
n8n-1 | at trimPrefix (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/router/index.js:342:13)
n8n-1 | at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/router/index.js:297:9
n8n-1 | at processParams (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/router/index.js:582:12)
n8n-1 | at next (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]/node_modules/router/index.js:291:5)
n8n-1 | at AuthService.authMiddleware (/usr/local/lib/node_modules/n8n/src/auth/auth.service.ts:85:17)
n8n-1 | at processTicksAndRejections (node:internal/process/task_queues:95:5)