I have WCF service that uses windows authentication and I call this service with ajax calls. For google chrome it is work perfect as the credential are cashed but in firefox I get 401 unauthorized. I would expect that firefox will pop a pop up to fill in my credential(like when I invoke the service from the browser).
my javascript code is as follows:
var url = "http://localhost:8732/Domain.WebServices/MyService/web/MyFunction";
$.ajax({
type: "GET",
url: url,
crossDomain: true,
processData: false,
xhrFields: {
withCredentials: true
},
error: function (XMLHttpRequest, textStatus, errorThrown) { alert('failed'); },
success: function (data) { onSuccess(data); }
});
how can I make it work in firefox when the credentials not cashed?