1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Revert "Remove withCredentials from xhrSetup in hls.js"

This reverts commit 3a8e0394dc.
This commit is contained in:
Bill Thornton 2020-11-30 13:35:50 -05:00
parent 76d2b7018c
commit 804077263c
2 changed files with 8 additions and 2 deletions

View file

@ -131,7 +131,10 @@ class HtmlAudioPlayer {
return new Promise(function (resolve, reject) {
requireHlsPlayer(function () {
const hls = new Hls({
manifestLoadingTimeOut: 20000
manifestLoadingTimeOut: 20000,
xhrSetup: function (xhr, url) {
xhr.withCredentials = true;
}
});
hls.loadSource(val);
hls.attachMedia(elem);