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

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -