add CSP based on backend selected by the user

xd
This commit is contained in:
Fijxu
2025-04-02 20:58:16 -03:00
parent 426e7bfbdb
commit c57a4f4920
2 changed files with 15 additions and 21 deletions

View File

@@ -51,7 +51,7 @@ module Invidious::Routes::BeforeAll
env.set "current_companion", current_companion
end
extra_media_csp, extra_connect_csp = BackendInfo.get_csp
extra_media_csp, extra_connect_csp = BackendInfo.get_csp(env.get("current_companion").as(Int32))
end
if !CONFIG.external_videoplayback_proxy.empty?