I have created a test with JavaScript on my Wordpress website. I want to send the user's name and email along with their scores to a Google Sheets spreadsheet, and I'm doing it using the Zapier webhook.
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.