is there a way to set response headers of a WebHook node?
i want to be able to set the Access-Control-Allow-Origin header.
Sorry, that is currently sadly not possible. Moved your topic for that reason to “Feature Request” that people can upvote it if needed.
I was able to make it work for now with fetch(), but I am not sure I can advise anyone to skip CORS ![]()
A configuration on the webhook to be able to set Access-Control-Allow-Origin and other response headers when possible would be a great feature !
Any update on this?
We really need that feature
No updates. We did not start with it yet as there are also many other things to do. But I can see what I can do.
Btw. we are a small team so pull requests are always welcome.
Thanks a lot @davidecavestro for making it possible to set response-headers on the Webhook-Node.
It just got released with n8n@0.64.0
Hi @davidecavestro,
I wanted to use this feature and configured my webhook like this:
However I always get returned as response header:
I use version 0.69.1
Do you have any tips for me?
Thanks
Leo
Sorry, was not very precise.
It works well if I do a regular POST.
The preflight OPTIONS call does not return the “Access-Control-Allow-Origin”
I will try to figure that out.
Ah yes sorry that is currently sadly not supported. That was also discussed shortly about here:
https://github.com/n8n-io/n8n/issues/595

