mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2025-12-30 03:21:35 +00:00
External Proxies: Use list of external videoplayback proxies
This commit is contained in:
@@ -28,12 +28,6 @@ module Invidious::Routes::BeforeAll
|
||||
extra_media_csp = ""
|
||||
end
|
||||
|
||||
if CONFIG.external_videoplayback_proxy
|
||||
external_videoplayback_proxy = " #{CONFIG.external_videoplayback_proxy}"
|
||||
else
|
||||
external_videoplayback_proxy = ""
|
||||
end
|
||||
|
||||
# Only allow the pages at /embed/* to be embedded
|
||||
if env.request.resource.starts_with?("/embed")
|
||||
frame_ancestors = "'self' file: http: https:"
|
||||
@@ -49,7 +43,7 @@ module Invidious::Routes::BeforeAll
|
||||
"style-src 'self' 'unsafe-inline'",
|
||||
"img-src 'self' data:",
|
||||
"font-src 'self' data:",
|
||||
"connect-src 'self'" + external_videoplayback_proxy,
|
||||
"connect-src 'self'" + EXT_VIDEOP_LIST,
|
||||
"manifest-src 'self'",
|
||||
"media-src 'self' blob:" + extra_media_csp,
|
||||
"child-src 'self' blob:",
|
||||
|
||||
Reference in New Issue
Block a user