When others have run into this in the past, the solution was to run everything behind a proxy, which, in my opinion, is the right way to do this anyway. You are simply asking for trouble if you are running n8n ânakedâ on the internet.
If you run n8n with docker then there will just be n8n and no proxy.
If you use run n8n as described in our Server Setup Guide then there will be a proxy in front of it. In this case traefik.
About your CORS issue. Did you try to make a request with curl to see if the Access Control Allow Header gets returned correctly? What value did you set?
Interesting. But it should also work if you set it as a response header an the Webhook-Node. At least in our setup it is working fine. Can not imagine that traefik would remove that.
Thank you for this, it made my problems with CORS go away immediately as well!
A question regarding security though since I feel I need to learn, what exactly does it mean to remove f.e. the Access-Control-Allow-Origin from the proxy? Doesnât this remove the whole purpose with a proxy? On the other hand, if you canât even access your own n8n backend itâs really not useful anyway so⌠I donât really know what to think of this?