-
Greetings! Firstly, thank you very much for this project! I am trying to switch from CloudFront Signed URLs to CloudFront Signed Cookies (more info on signed cookies) Before: Signed URLs (works!)Currently, I facilitate signed URLs by passing the const credentials = url.split('?')[1]
dashPlayer.extend(
'RequestModifier',
() => {
return {
modifyRequestURL: (url: string) => {
if (!url.includes(credentials)) {
return `${url}?${credentials}`
}
return url
},
}
},
true,
) This works great How to do signed cookies?My intuition is this: dashPlayer.extend(
'RequestModifier',
() => {
return {
modifyRequestHeader: (xhr: XMLHttpRequest) => {
xhr.withCredentials = true
return xhr
},
}
},
true,
) However, Based on my research, this came up here: #2324 (comment) via @epiclabsDASH:
It's been a few years/releases since then, is there a way to make it so the mpd request (the initial one that fetches the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @tony , does this work for you:
|
Beta Was this translation helpful? Give feedback.
Hi @tony , does this work for you: