mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-26 18:11:55 -04:00
Update src/invidious/routes/before_all.cr
Co-authored-by: syeopite <70992037+syeopite@users.noreply.github.com>
This commit is contained in:
parent
1492453c60
commit
aab6ff4bb6
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ module Invidious::Routes::BeforeAll
|
|||
# configuration file, causing preference “Proxy Videos”
|
||||
# not to work while having it disabled and using medium quality.
|
||||
if CONFIG.disabled?("local") || !preferences.local
|
||||
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")
|
||||
env.response.headers.update("Content-Security-Policy", &.gsub("media-src", "media-src https://*.googlevideo.com:443 https://*.youtube.com:443"))
|
||||
end
|
||||
|
||||
current_page = env.request.path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue