Skip to content

Commit 9cb213c

Browse files
fix: retry on hls not using withCredentials (#912)
1 parent ea2f0b7 commit 9cb213c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/cloudinary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const setVideoSrc = (that, srcs) => {
4646
const handleCldError = (that, options) => {
4747
const srcs = that.videojs.cloudinary.getCurrentSources();
4848
const opts = options.fetchErrorUsingGet ? ERROR_WITH_GET_REQUEST : GET_ERROR_DEFAULT_REQUEST;
49-
opts.credentials = options.withCredentials ? 'include' : 'omit';
49+
opts.credentials = options.sourceOptions.withCredentials ? 'include' : 'omit';
5050

5151
if (srcs.length > 0) {
5252
Promise.all(srcs.map((s) => fetch(s.src, opts))).then((res) => {

0 commit comments

Comments
 (0)