Automations: webhook trigger doesn't work, client receive CORS error

When I am trying to make a POST request to the webhook I receive CORS error: “Access to XMLHttpRequest at {hookUrl} from origin {mySite} 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.”

‘Content-Type’: ‘application/json’ header is attached to my request, I send a valid JSON and it is a POST request. When I use a special extension that bypasses CORS request works. But I need that any user could send the request (it is sent from the contact form)

Sorry, I don’t know the answer to your problem, but I would recommend using Integromat’s webhooks, which are more robust than Airtable’s webhooks:

1 Like

Integromat is good, I use it a lot. Thanks!

Just was wondering about a solution without any external services.

1 Like

I switched from webhooks to API to write data to the tables and it works this way. But I am still open to answers about the problem.

Just out of curiosity what language are you sending the post out of? PHP, javascript, something else?