CORS issue with Webhook - Access-Control-Allow-Origin not working

Hi n8n Support Team,
I’m experiencing a CORS issue with my webhook that I cannot resolve despite following all recommended settings.
Setup:

  1. Allowed Origins (CORS): *
  2. HTTP Method: POST
  3. Response Headers in “Respond to Webhook” node:
    • Access-Control-Allow-Origin: *
    • Access-Control-Allow-Methods: POST, OPTIONS
    • Access-Control-Allow-Headers: Content-Type
      The Problem:
      When my website makes a POST request to the webhook, the browser blocks it with:

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey you need to create a separate, simple workflow whose work is to correctly respond to OPTIONS preflight requests. This is the standard way to handle CORS in n8n.