Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

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

Topic Labels: Automations
760 4
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

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?