We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 908c2ba + aadc6d9 commit 1ed32d7Copy full SHA for 1ed32d7
src/howler.core.js
@@ -473,6 +473,7 @@
473
self._sprite = o.sprite || {};
474
self._src = (typeof o.src !== 'string') ? o.src : [o.src];
475
self._volume = o.volume !== undefined ? o.volume : 1;
476
+ self._xhrWithCredentials = o.xhrWithCredentials || false;
477
478
// Setup all other default properties.
479
self._duration = 0;
@@ -2084,6 +2085,7 @@
2084
2085
// Load the buffer from the URL.
2086
var xhr = new XMLHttpRequest();
2087
xhr.open('GET', url, true);
2088
+ xhr.withCredentials = self._xhrWithCredentials;
2089
xhr.responseType = 'arraybuffer';
2090
xhr.onload = function() {
2091
// Make sure we get a successful response back.
0 commit comments