我试图向从Sharepoint到Infloblox的REST端点发出一个get请求,但是我总是收到拒绝访问的错误, 即使我们通过了基本授权。
XMLHttpRequest:网络错误0x80070005,访问被拒绝。
var settings = {
"async": true,
"crossDomain": true,
"url": "https://x.x.x.x/wapi/v1.2.1/network?_return_fields%2B=extattrs&*VLAN%3A=xxxx&*Site%3A=xxx&_return_as_object=1",
"method": "GET",
"headers": {
"Authorization": "Basic some_authentication_token",
"Cache-Control": "no-cache",
"Postman-Token": "postmantoken"
}
}
$.ajax(settings).done(function (response) {
alert(response);
});