For anyone using this code today, know that you may need to delete the line:
contentType: “application/json”,
If you’re getting errors in the console that say:
Access to XMLHttpRequest at ‘https://hooks.zapier.com/hooks/catch/14154165/bveainc/’ from origin ‘https://lo-harris.webflow.io’ has been blocked by CORS policy: Request header field content-type is not allowed by Access-Control-Allow-Headers in preflight response.
I had to do this for Zapier, and then I stopped getting webflow form errors and everything worked as expected!