javascript - Sending credentials with cross-domain posts? -
according requests credentials, firefox send credentials along cross-domain posts if
invocation.withcredentials = "true"; 
is set… doesn't seem jquery's ajax api provides mechanism this.
is there i've missed? there other way can it?
functionality supposed broken in jquery 1.5.
since jquery 1.5.1 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
Comments
Post a Comment