After setting up the JSON and fetch correctly, the console gives me the following error:
Access to fetch at 'https://hooks.zapier.com/hooks/catch/-----------/' from origin 'https://magistral.com' has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
Zapier detects the sending of the test, but does not collect the data.
I don't know how to fix it. I attach screenshots of the code and the error.
I am assuming you are simply wanting to send data to your Zapier webhook for processing and are not interested in the response being returned back by Zapier.
As such, could you try adding the "no-cors" option to your fetch and seeing if the problem still persists. (using “no-cors” will not allow you to access the response returned by Zapier)
Your "fetch" statement will end up looking something like this.
Thank you so much, it worked perfectly!