Is it possible to use CORS or JSONP with the marketo rest api -


i have tried circumvent sop lead details marketo api. possible use cors or jsonp. doesn't seem fear there may bug in code.

i using cors method outline in book "third party javascript"

function createcorsrequest(method, url){   var xhr = new xmlhttprequest();   if ("withcredentials" in xhr){       console.log('we have credentials');       xhr.open(method, url, false);   } else if (typeof xdomainrequest != "undefined"){       xhr = new xdomainrequest();       xhr.open(method, url, false);       console.log('domain request undefined');   } else {       xhr = null;       console.log('null null null');       }    return xhr; };  xhr = new createcorsrequest(); xhr.open("get", {url}, false); xhr.send(); 

currently getting standard soap error.

will have create new api on domain document received from. wrapper marketo rest api.

will have create new api on domain document received from. wrapper marketo rest api.

this best way it. there might method use circumvent it, exposing access token bad news security perspective.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -