別のドメインのアプリケーションにログインしており、そのドメインに対して行う後続の XmlHttpRequest ごとに、Windows 認証資格情報を送信したいので、別のサービスに要求を行った場合に再度ログインするように求められません。その同じドメイン。
XmlHttpRequest ヘッダーで Windows 認証資格情報を送信することは可能ですか?
var xmlhttp = new window.XMLHttpRequest();
xmlhttp.open("GET", requestUrl, true);
xmlhttp.setRequestHeader("Content-Type", "application/json");
xmlhttp.setRequestHeader("Accept", "application/json");
//Is it possible to send the Windows Authentication creds in the header of this request?
xmlhttp.setRequestHeader("?????", "?????");
xmlhttp.onreadystatechange = function ()
{
if (xmlhttp.readyState == 4)
{
callback(__parseJson(xmlhttp.responseText));
}
}
xmlhttp.send(null);