Help

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

1806 1
cancel
Showing results for 
Search instead for 
Did you mean: 
VItalii_Batyr
5 - Automation Enthusiast
5 - Automation Enthusiast

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)

4 Replies 4

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:

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

Just was wondering about a solution without any external services.

VItalii_Batyr
5 - Automation Enthusiast
5 - Automation Enthusiast

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.

Stephen_Parker
5 - Automation Enthusiast
5 - Automation Enthusiast

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