Invidious is an alternative front-end to YouTube
Revert "Update src/invidious/routes/before_all.cr"
Fijxu6fe21a7523c2
diff --git a/src/invidious/routes/before_all.cr b/src/invidious/routes/before_all.crindex 0c7bbdc2..b5269668 100644--- a/src/invidious/routes/before_all.cr+++ b/src/invidious/routes/before_all.cr@@ -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.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")endcurrent_page = env.request.path