Skip to content

Commit 1ed32d7

Browse files
authored
Merge pull request #610 from jfpalacios/master
Add support for withCredentials
2 parents 908c2ba + aadc6d9 commit 1ed32d7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/howler.core.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@
473473
self._sprite = o.sprite || {};
474474
self._src = (typeof o.src !== 'string') ? o.src : [o.src];
475475
self._volume = o.volume !== undefined ? o.volume : 1;
476+
self._xhrWithCredentials = o.xhrWithCredentials || false;
476477

477478
// Setup all other default properties.
478479
self._duration = 0;
@@ -2084,6 +2085,7 @@
20842085
// Load the buffer from the URL.
20852086
var xhr = new XMLHttpRequest();
20862087
xhr.open('GET', url, true);
2088+
xhr.withCredentials = self._xhrWithCredentials;
20872089
xhr.responseType = 'arraybuffer';
20882090
xhr.onload = function() {
20892091
// Make sure we get a successful response back.

0 commit comments

Comments
 (0)