kopia lustrzana https://github.com/iv-org/invidious
Merge 4adb4c00d2
into eda7444ca4
commit
d217b5e53b
|
@ -30,7 +30,7 @@ module Invidious::Routes::BeforeAll
|
||||||
|
|
||||||
# Only allow the pages at /embed/* to be embedded
|
# Only allow the pages at /embed/* to be embedded
|
||||||
if env.request.resource.starts_with?("/embed")
|
if env.request.resource.starts_with?("/embed")
|
||||||
frame_ancestors = "'self' http: https:"
|
frame_ancestors = "'self' file: http: https:"
|
||||||
else
|
else
|
||||||
frame_ancestors = "'none'"
|
frame_ancestors = "'none'"
|
||||||
end
|
end
|
||||||
|
|
Ładowanie…
Reference in New Issue