videojs / videojs-playlist

Playlist plugin for videojs
Other
361 stars 123 forks source link

How to set "beforeRequest" for JWT? #249

Closed alexchern closed 1 year ago

alexchern commented 1 year ago

Hi guys,

I have a web server that requires a JWT for content access. How can I set the token? Is it possible to use the beforeRequest function to modify the request headers?

Thanks,

Alex

alexchern commented 1 year ago

Ended up changing all xhr request headers...