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
Post a Comment