lundi 22 décembre 2014

error XMLHttpRequest: Network Error 0x80070005



I'm using REST API tp get the SPusers , this is the function :



function getSiteUser(url,complete) {

$.ajax({
url: url + "_api/web/siteUsers?$select=LoginName",
method: "GET",
contentType: "application/json; charset=utf-8",

headers: { "accept": "application/json; odata=verbose" },
success: function (data) {
// Returning the results
complete(data);
},
error: function (data) {
alert(data);
}
});
}


but I got this error :



SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.



It's not across domain application, Im in the local server , I use SharePoint foundation 2013. any ideas, best regards








0 commentaires:

Enregistrer un commentaire