Link to home
Start Free TrialLog in
Avatar of Jeffrey Dake
Jeffrey DakeFlag for United States of America

asked on

Can you async load a page from another site in a Marketo Landing Page

We have a Marketo Landing Page that we wanted to put dynamic content on it.  We created a page on our main site that has the html we would like on all our Marketo Landing Pages, however if I try to do a jquery load() on that URL, I get a cross site scripting error.  Does anyone know if there is any way in Marketo to tell it that I would like to accept requests from that other secure domain?
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Failing that you can do a JSONP call to the server. With JSONP you have to wrap your returned content in a JavaScript function which is then invoked in the Browser on return to get the actual content.

I would go with the ACCESS-CONTROL header approach first - and only if that is not available for whatever reason use JSONP.
Avatar of Jeffrey Dake

ASKER

Thanks.
You are welcome.