REQUEST FROM LOCALHOST :
If Webhook in production docker container receives data from localhost:8080 POST request with fetch => JSON is parsed and Webhook response mode to last node is working perfectly
REQUEST FROM PRODUCTION ENVIRONMENT WITH CORS ENABLED :
Access to fetch at ‘https://n8n.xxx.com/webhook/4/webhook/xxx’ from origin ‘https://www.xxx.com’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
It happens EVEN when access-control-allow-origin is set to “*” in the response headers.
REQUEST FROM PRODUCTION ENVIRONMENT WITH CORS DISABLED :
if Webhook receives data from https://www.xxx.com POST request with fetch and with no cors mode => no-cors forces content type to “text-plain”. Therefore I’m not getting any information from the last node
Any idea how to solve this ?