diff options
| author | Fijxu <fijxu@nadeko.net> | 2025-05-10 16:30:19 -0400 |
|---|---|---|
| committer | Fijxu <fijxu@nadeko.net> | 2025-05-10 16:31:14 -0400 |
| commit | 1492453c6018c633e944f08b93ecf054599caa62 (patch) | |
| tree | 1226ce2699d242989754416e354cdfe016dbb19d | |
| parent | 401bc110d6a6231aa8e2c55bb03876825129b88d (diff) | |
| download | invidious-1492453c6018c633e944f08b93ecf054599caa62.tar.gz invidious-1492453c6018c633e944f08b93ecf054599caa62.tar.bz2 invidious-1492453c6018c633e944f08b93ecf054599caa62.zip | |
update comment
| -rw-r--r-- | src/invidious/routes/before_all.cr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/invidious/routes/before_all.cr b/src/invidious/routes/before_all.cr index 0cc04021..b5269668 100644 --- a/src/invidious/routes/before_all.cr +++ b/src/invidious/routes/before_all.cr @@ -108,10 +108,11 @@ module Invidious::Routes::BeforeAll # `!preferences.local` has to be checked after setting and # reading `preferences` from the "PREFS" cookie and # saved user preferences from the database, otherwise - # the `extra_media_csp` variable will be always empty if + # `https://*.googlevideo.com:443 https://*.youtube.com:443` + # will not be set in the CSP header if # `default_user_preferences.local` is set to true on the # configuration file, causing preference “Proxy Videos” - # not to work. + # 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") end |
