ajax
ajax copied to clipboard
xhrFields not supported?
I tried this component to replace jQuery in a project where I use cross-domain requests.
But to found new requests does not carry cookes with it.
And in source code I can not find such string named xhrFields
. So it's not supported?
You can set those field in the beforeSend
function:
For example:
beforeSend: function( xhr ) {
debugger;
xhr.withCredentials = true;
}