I am using video.js to play MP/4 videos that are supplied via an Adonis API using response.download() to stream the videos from a protected path on the server.
However I only want registered users to view the videos.
Since video.js can not send custom headers (neither can the HTML5 video player), I want to include the the users token as a url parameter. When the request hits the controller, I want to do something like
Is this possible?