May 30, 2021 02:05 PM
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)
May 30, 2021 02:32 PM
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:
May 31, 2021 06:34 AM
Integromat is good, I use it a lot. Thanks!
Just was wondering about a solution without any external services.
May 31, 2021 06:35 AM
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.
Jun 04, 2021 01:19 PM
Just out of curiosity what language are you sending the post out of? PHP, javascript, something else?