![](/img/trans.png)
[英]Electron app with multiple tabbed browser windows connecting to https sites
[英]connecting to TFS using windows auth in electron app
我正在构建一个电子应用程序,该应用程序连接到TFS服务器并从中检索一些数据。 他们使用Windows凭据访问TFS,我如何通过chrome或node.js使用Windows凭据连接到TFS?
我尝试了此代码,但给了我401:未经授权
$.ajax({
url: 'https://tfs.myserver.com:8090/tfs/IKM.TPC.Projects/MR/_workitems',
type: 'GET',
dataType: 'json',
xhrFields: {
withCredentials: true
}
})
.done(function (data) {
$('#result').text(data);
})
.fail(function (jqXHR, textStatus, errorThrown) {
$('#result').text(textStatus);
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.