mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-19 04:51:10 +00:00
Revert "Update src/invidious/routes/before_all.cr"
This reverts commit aab6ff4bb6e4d3174ab812e5a2cdeec841d2358e.
This commit is contained in:
parent
aab6ff4bb6
commit
6fe21a7523
@ -114,7 +114,7 @@ module Invidious::Routes::BeforeAll
|
|||||||
# configuration file, causing preference “Proxy Videos”
|
# configuration file, causing preference “Proxy Videos”
|
||||||
# not to work while having it disabled and using medium quality.
|
# not to work while having it disabled and using medium quality.
|
||||||
if CONFIG.disabled?("local") || !preferences.local
|
if CONFIG.disabled?("local") || !preferences.local
|
||||||
env.response.headers.update("Content-Security-Policy", &.gsub("media-src", "media-src https://*.googlevideo.com:443 https://*.youtube.com:443"))
|
env.response.headers["Content-Security-Policy"] = env.response.headers["Content-Security-Policy"].gsub("media-src", "media-src https://*.googlevideo.com:443 https://*.youtube.com:443")
|
||||||
end
|
end
|
||||||
|
|
||||||
current_page = env.request.path
|
current_page = env.request.path
|
||||||
|
Loading…
x
Reference in New Issue
Block a user