mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +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);
|
||||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue