(function (send) {
XMLHttpRequest.prototype.send = function (data) {
this.setRequestHeader(myAppWithSyncfusionDatamgr.attachAntiForgery.tokenHeaderName, myAppWithSyncfusionDatamgr.attachAntiForgery.getToken());
return send.call(this, data);
};
})(XMLHttpRequest.prototype.send);
var dataManager = ej.DataManager({
url: "GetData",
adaptor: new ej.UrlAdaptor(),
headers: [{
token: "12aba676"
}]
}); |
thanks