Cross domain REST using Ajax in Dojo -
i have using dojo.xhrpost method in dojo , trying call url different domain server rest services. have facing problem in cross-domain.
i have getting error ::: “ requesterror: unable load https://core.dev.moxynetwork.com/rest/authservice/authuser status: 0”
please me.
regards&thanks, vijayalaxmi
dojo.xhrpost deprecated , removed.
use dojo/request/script dojo 1.9 :
require(['dojo','dojo/ready','dojo/_base/lang','dojo/_base/array', 'dojo/request/script' ], function(dojo, ready, lang, array,script){ ready(function(){ request.get('enter-your-url.com',{jsonp: "callback"}).then(function(resjson){ console.log(resjson); }); }); });
Comments
Post a Comment