Server side form post returns ajax cross origin error
I'm using this tutorial http://developers.marketo.com/blog/server-side-form-post/ to post form data back to marketo from my site.
I am getting a issue relating to the Ajax response
XMLHttpRequest cannot load app-lon.marketo.com/index.php/leadCapture/save. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'mysite.com' is therefore not allowed access.
The above error prevents the Ajax success function from triggering.
Is there a way I can either circumvent this issue?
If the marketo sub-domain is only for my marketo account, would it be feasible to request that marketo add in the correct headers on the server side file for my domain(s)?
Thanks