Cross Domain user credentials passing #5069
-
Is your feature request related to a problem? Please describe.In some cases a given HLS service, that provides m3u8 playlist and chunk files can require authentication and perform user authentication process with using of Cookies, JWT, Basic Auth or even TLS Client Certificate. It means, that the xhr request in the hls.js player must authenticate to access the given HLS service. Describe the solution you'd likeIn the release package the solution is very simple. In the file dist/hls.js search for the line
and you could add
bellow it. Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is already covered in the documentation: https://github.com/dailymotion/hls.js/blob/master/docs/API.md#xhrsetup withCredentials can not default to true because that will cause issues with requests that have wildcard CORS headers. |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
This is already covered in the documentation: https://github.com/dailymotion/hls.js/blob/master/docs/API.md#xhrsetup
withCredentials can not default to true because that will cause issues with requests that have wildcard CORS headers.