簡體   English   中英

使用 http 標頭播放 Html 5 視頻?

[英]Html 5 video play with http headers?

如何通過從帶有 html 5 的鏈接添加標題來播放? 例如:xxxx.comv?v=36474,這個鏈接沒有某些http headers就打不開,我的問題是當我們想玩html5時,我們有機會添加這些http headers嗎? 我需要添加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"

您可以做的事情非常有限,可以影響單擊鏈接時發送的請求標頭(例如使用rel="noreferrer"

您不能將任意標題設置為任意值。

如果您使用XMLHttpRequestfetch而不是鏈接,那么有一些方法可以設置標頭,但是您要設置的一些標頭是禁止的,因此這也不起作用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM