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.
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/b8e26e0c-cee9-4f36-98e8-72e1998b67cd.png)
![](https://uploads-us-west-2.insided.com/zapier-ca/attachment/08ffd955-4ef0-4f3c-b17a-f57a3b212dd7.png)