Skip to content

Commit

Permalink
feat(FEC-11091): add support for XMLHttpRequest.withCredentials in re…
Browse files Browse the repository at this point in the history
…quest filter (#137)
  • Loading branch information
Dan Ziv committed Apr 26, 2021
1 parent fe08899 commit e4f5126
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hls-adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ export default class HlsAdapter extends BaseMediaSourceAdapter {
Object.entries(updatedRequest.headers).forEach(entry => {
xhr.setRequestHeader(...entry);
});
if (typeof updatedRequest.withCredentials === 'boolean') {
xhr.withCredentials = updatedRequest.withCredentials;
}
})
.catch(error => {
this._requestFilterError = true;
Expand Down

0 comments on commit e4f5126

Please sign in to comment.