XHRLoader will now use the XHRSettings.withCredentials as set in the file or global loader config.

This commit is contained in:
Richard Davey 2020-01-22 16:29:58 +00:00
parent bf0feee498
commit af85f9451d

View file

@ -45,6 +45,11 @@ var XHRLoader = function (file, globalXHRSettings)
xhr.overrideMimeType(config.overrideMimeType);
}
if (config.withCredentials)
{
xhr.withCredentials = true;
}
// After a successful request, the xhr.response property will contain the requested data as a DOMString, ArrayBuffer, Blob, or Document (depending on what was set for responseType.)
xhr.onload = file.onLoad.bind(file, xhr);