Skip to content

Commit

Permalink
Allow xhr credentials to be sent to the captions server.
Browse files Browse the repository at this point in the history
  • Loading branch information
ferserc1 committed Feb 17, 2021
1 parent 978c889 commit e926c7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/06_1_captions.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,10 @@ class Caption {
url: self._url,
cache:false,
type: 'get',
dataType: "text"
dataType: "text",
xhrFields: {
withCredentials: true
}
})
.then(function(dataRaw){
var parser = captionParserManager._formats[self._format];
Expand Down

0 comments on commit e926c7a

Please sign in to comment.