Skip to content

Commit af85f94

Browse files
committed
XHRLoader will now use the XHRSettings.withCredentials as set in the file or global loader config.
1 parent bf0feee commit af85f94

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/loader/XHRLoader.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ var XHRLoader = function (file, globalXHRSettings)
4545
xhr.overrideMimeType(config.overrideMimeType);
4646
}
4747

48+
if (config.withCredentials)
49+
{
50+
xhr.withCredentials = true;
51+
}
52+
4853
// 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.)
4954

5055
xhr.onload = file.onLoad.bind(file, xhr);

0 commit comments

Comments
 (0)