Custom headers with HTML5 video requests

前端 未结 2 1970
轮回少年
轮回少年 2021-01-01 12:45

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

2条回答
  •  别那么骄傲
    2021-01-01 12:55

    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

提交回复
热议问题