Forms won't submit after domain change | Community
Skip to main content
New Participant
March 12, 2023
Solved

Forms won't submit after domain change

  • March 12, 2023
  • 1 reply
  • 2844 views

Hey all! We recently changed our domains and everything looks correctly configured in Marketo and with CNAME but we are now getting an error when submitting forms. Sometimes they submit, and sometimes we get the "Submission Failed, Please Try Again Later" message. It looks like a CORS issue with XML. Here is our error log:

 

"Access to XMLHttpRequest at 'discover.sago.com/index.php/leadCapture/save2' from origin 'https://discover.schlesingergroup.com' 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."

 

Has anyone solved this previously?

Best answer by SanfordWhiteman

... and as predicted and described in the blog post, you’re loading from 2 different LP domains:

 

Line 1014:

<script src="//discover.sago.com/js/forms2/js/forms2.min.js"></script> <form id="mktoForm_1573"></form> <script>MktoForms2.loadForm("//discover.sago.com", "775-OMN-861", 1573);</script>

 

Line 1212:

<script src="//discover.schlesingergroup.com/js/forms2/js/forms2.min.js"></script> <form id="mktoForm_1355"></form> <script>MktoForms2.loadForm("//discover.schlesingergroup.com", "775-OMN-861", 1355);</script>

 

1 reply

SanfordWhiteman
New Participant
March 12, 2023

Please link to a page that’s behaving like this. I suspect the cause is exactly what I mentioned here:

The dreaded “Submission failed, please try again” error and what you (accidentally) did to cause it

New Participant
March 13, 2023

Right now, it is any page that has a form, and sometimes they submit and then sometimes they don't. But this page, which we created as a blank test page is doing it.

 

https://sago.com/en/erin-form-test/

 

 

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
March 13, 2023

... and as predicted and described in the blog post, you’re loading from 2 different LP domains:

 

Line 1014:

<script src="//discover.sago.com/js/forms2/js/forms2.min.js"></script> <form id="mktoForm_1573"></form> <script>MktoForms2.loadForm("//discover.sago.com", "775-OMN-861", 1573);</script>

 

Line 1212:

<script src="//discover.schlesingergroup.com/js/forms2/js/forms2.min.js"></script> <form id="mktoForm_1355"></form> <script>MktoForms2.loadForm("//discover.schlesingergroup.com", "775-OMN-861", 1355);</script>