According to Requests with credentials, Firefox will only send credentials along with cross-domain posts if
invocation.withCredentials = "true";
is set… But it doesn't seem like jQuery's Ajax API provides any mechanism for this.
Is there something I've missed? Is there some other way I can do it?
Functionality is supposed to be broken in jQuery 1.5.
Since jQuery 1.5.1 you should use xhrFields param.
$.ajaxSetup({
type: "POST",
data: {},
dataType: 'json',
xhrFields: {
withCredentials: true
},
crossDomain: true
});
Docs: http://api.jquery.com/jQuery.ajax/
Reported bug: http://bugs.jquery.com/ticket/8146