从Sharepoint调用Inflowblox时访问被拒绝

时间:2018-09-07 13:40:33

标签: jquery rest sharepoint

我试图向从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);
}); 

0 个答案:

没有答案