diff --git a/src/plugins/htmlAudioPlayer/plugin.js b/src/plugins/htmlAudioPlayer/plugin.js
index acce15df88..6f413fac50 100644
--- a/src/plugins/htmlAudioPlayer/plugin.js
+++ b/src/plugins/htmlAudioPlayer/plugin.js
@@ -132,10 +132,7 @@ class HtmlAudioPlayer {
return new Promise(function (resolve, reject) {
requireHlsPlayer(function () {
const hls = new Hls({
- manifestLoadingTimeOut: 20000,
- xhrSetup: function (xhr, url) {
- xhr.withCredentials = true;
- }
+ manifestLoadingTimeOut: 20000
});
hls.loadSource(val);
hls.attachMedia(elem);
diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js
index 58c8624e34..88329fecff 100644
--- a/src/plugins/htmlVideoPlayer/plugin.js
+++ b/src/plugins/htmlVideoPlayer/plugin.js
@@ -393,10 +393,7 @@ function tryRemoveElement(elem) {
return new Promise((resolve, reject) => {
requireHlsPlayer(() => {
const hls = new Hls({
- manifestLoadingTimeOut: 20000,
- xhrSetup(xhr) {
- xhr.withCredentials = true;
- }
+ manifestLoadingTimeOut: 20000
});
hls.loadSource(url);
hls.attachMedia(elem);