Jump to content

Ajax form submission, CORS error

Recommended Posts

Posted

Site URL: https://moreland.edu/form-submission-no-redirect

We use Infusionsoft as a form handler and I'm trying to figure out how to submit a form via Ajax to avoid the natural page refresh. As it currently sits, I get a CORS error. I've also tried changing the form data type to 'jsonp' and that did change the error, but did not avoid it. I understand that CORS is controlled by server headers which I can't change on Squarespace but is there another way to get this to work somehow?

  • 1 month later...
  • Replies 1
  • Views 509
  • Created
  • Last Reply
Posted
On 9/28/2021 at 4:59 AM, gmgarrison said:

Site URL: https://moreland.edu/form-submission-no-redirect

We use Infusionsoft as a form handler and I'm trying to figure out how to submit a form via Ajax to avoid the natural page refresh. As it currently sits, I get a CORS error. I've also tried changing the form data type to 'jsonp' and that did change the error, but did not avoid it. I understand that CORS is controlled by server headers which I can't change on Squarespace but is there another way to get this to work somehow?

I can think of using webhook to handle the submission and parse the data into your CRM

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.