Skip to content

Invidious is an alternative front-end to YouTube

Fix quoting of 'none' in CSP header

Samantaz Fox5a8825d01682
diff --git a/src/invidious.cr b/src/invidious.cr
index b1ee1525..f7c8980a 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -187,7 +187,7 @@ before_all do |env|
if env.request.resource.starts_with?("/embed")
frame_ancestors = "'self' http: https:"
else
- frame_ancestors = "none"
+ frame_ancestors = "'none'"
end
# TODO: Remove style-src's 'unsafe-inline', requires to remove all