Streaming live at 10am (PST)

CORS Problem - AJAX



I wanna send data with a webflow form to an API using the following script:

 var settings = {
  "async": true,
  "crossDomain": true,
  "url": "",
  "method": "POST",
  "headers": {
    "Content-Type": "application/json",
    "Cache-Control": "no-cache",
  "processData": false,
  "data": "{\r\n  \"candidate\": {\r\n    \"name\": \"John Smith\",\r\n    \"email\": \"\",\r\n    \"phone\": \"987654321\",\r\n    \"cover_letter\": \"Example cover letter\",\r\n    \"remote_photo_url\": \"\",\r\n    \"remote_cv_url\": \"\",\r\n    \"open_question_answers_attributes\": [\r\n      {\r\n        \"open_question_id\": 5,\r\n        \"content\": \"Yes\"\r\n      },\r\n      {\r\n        \"open_question_id\": 8,\r\n        \"content\": \"Responsibility\"\r\n      },\r\n      {\r\n        \"open_question_id\": 9,\r\n        \"content\": \"Blue\"\r\n      },\r\n      {\r\n        \"open_question_id\": 10,\r\n        \"content\": \"Pizza, Hamburger\"\r\n      }\r\n     ]\r\n  }\r\n}"

$.ajax(settings).done(function (response) {

Is there a way to avoid to CORS ptoblem so i can use a form on webflow that send data to the following API?

Thanks in advance!

Kind regards,


Hi @EdwinN1337, at the moment the ability to setup CORS is not supported natively. You might try to change the script url to originate from a subdomain on your site, i.e., where “code” is a cname record setup to point to your code server.

The url in that case would be something like:

I hope this helps


You can use Zapier to make the POST to the server. I personally now use Flow (enterprise) to make calls from Webflow.


Thanks for the response.

Zapier still not working for me, not sure what i’m doing wrong (error: wrong datarequest).

But im working on it!