简体   繁体   中英

Html 5 video play with http headers?

How to play by adding a headers from a link with html 5? For example: xxxx.comv?v=36474, this link does not open without certain http headers, my question is when we want to play with html5, do we have a chance to add these http headers? I need to add hedaers:

"authority: xxx.xxx.xy" "user-agent: Mozilla" "sec-fetch-dest: empty" "accept: */*" "origin: https://www.yyyy.com" "sec-fetch-site: cross-site" "sec-fetch-mode: cors" "referer: https://www.yyyy.com/p4p.php?v=7f0baeb86d31f0bdb56d452d83020aaf52f0c7a1401c10ab10e4141629d9682b" "accept-language: tr-TR,tr;q=0.9,en-US;q=0.8,en;q=0.7"

There are only very limited things you can do to affect the request headers sent when a link is clicked on (such as using rel="noreferrer" .

You can't set arbitrary headers to arbitrary values.

If you are using XMLHttpRequest or fetch instead of a link then there are methods to set headers, but a number of the headers you want to set are forbidden , so that won't work either.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM