I tried to use the JWPlayer for play a video in my current project. And for secure our media file on server. I put secure key in the header of the video render action by using javascript.
For example, if I want to request to http://mydomain.com/video/[myvideoname]/download, and I have to put the secure key like Authorization Bearer f850dae6bb36ffa2f7c07c30fea158ca99e8c237 into the header of the request to server. But I search somewhere on internet, but maybe could not find out any solution to set the request header. Could anyone let me know can I do like this or not ?