mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-28 08:27:25 +00:00
fixing condition for Content-Security-Policy
This commit is contained in:
parent
1954463371
commit
c612423a4d
@ -190,7 +190,7 @@ module Invidious::Routes::Watch
|
||||
captions: video.captions
|
||||
)
|
||||
|
||||
if (CONFIG.invidious_companion && env.params.query["local"] == true)
|
||||
if (CONFIG.invidious_companion && (preferences.local || preferences.quality == "dash"))
|
||||
env.response.headers["Content-Security-Policy"] =
|
||||
env.response.headers["Content-Security-Policy"]
|
||||
.gsub("media-src", "media-src " + video.invidious_companion["baseUrl"].as_s)
|
||||
|
Loading…
Reference in New Issue
Block a user