Marketo embedded form wont submit
Hi all,
Our marketo embedded form is throwing a
CORS error and will not submit
Thanks,
Hi all,
Our marketo embedded form is throwing a
CORS error and will not submit
Thanks,
Hi Sanford,
and this is the error on inspector

OK, figured it out.
The problem is you have a race condition between your 2 forms, which are loading from different domains. When the cross-domain IFRAME shim (which is designed to avoid the need for CORS) loads from one domain and tries to post to the other domain, you then need a CORS request, which in turn fails because the server is not set up to respond to OPTIONS requests (it should never receive a CORS request).
This set of conditions will occur randomly, based on network connection speed + quality and cache conditions, since the form descriptors load asynchronously.
Load both forms from the same domain and the problem will go away:
MktoForms2.loadForm("//go.portworx.com", ...
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.