Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom headers with HTML5 video requests

Tags:

I have a video resource sitting behind OAuth 2.0 wall and want to display it via <video> tag. How can I send Authorization header with video requests?

like image 859
Alex B Avatar asked Aug 02 '12 12:08

Alex B


1 Answers

i had this problem and sent Authorization token in url query parameter like this (server side code must be changed to allow reading Token From both request header & request query parameter) : http://www.example.com/samplevideo?Authorization=sample_token

like image 191
Soheil Ghahremani Avatar answered Sep 19 '22 18:09

Soheil Ghahremani