mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
XHRLoader
will now use the XHRSettings.withCredentials
as set in the file or global loader config.
This commit is contained in:
parent
bf0feee498
commit
af85f9451d
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ var XHRLoader = function (file, globalXHRSettings)
|
||||||
xhr.overrideMimeType(config.overrideMimeType);
|
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.)
|
// 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);
|
xhr.onload = file.onLoad.bind(file, xhr);
|
||||||
|
|
Loading…
Add table
Reference in a new issue