Skip to content

CORS Error #23316

@ondery

Description

@ondery

Bug Description

I previously upgraded from version 1.x.x to 2.1.0, but after encountering CORS errors in the forms, I downgraded to 2.0.2 and the problem was solved. I'm using Docker versions for N8N Queue, Workers, and Webhook; however, despite trying all environment constants, I couldn't resolve the CORS error in 2.1.0 because the Request Header "Origin" property of the forms is automatically set to "null" and cannot be changed.

To Reproduce

  1. install 2.1.0 version
  2. trigger with form
  3. upload any file
  4. submit form
  5. see request header "Origin" null

Expected behavior

request header "Origin" must be server hosting address

Debug Info

core

  • n8nVersion: 2.1.0
  • platform: docker (self-hosted)
  • nodeJsVersion: 22.21.0
  • nodeEnv: production
  • database: postgres
  • executionMode: scaling (single-main)
  • concurrency: -1
  • license: enterprise (production)

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: database

pruning

  • enabled: true
  • maxAge: 336 hours
  • maxCount: 10000 executions

client

  • userAgent: mozilla/5.0 (windows nt 10.0; win64; x64) applewebkit/537.36 (khtml, like gecko) chrome/143.0.0.0 safari/537.36
  • isTouchDevice: false

Operating System

Ubuntu Linux 22.04

n8n Version

2.1.0

Node.js Version

22.16.0

Database

MySQL

Execution mode

queue

Hosting

self hosted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions