From d8ecfd9c045fa9e1487d01d373f79fc13563bfbd Mon Sep 17 00:00:00 2001 From: Fijxu Date: Fri, 21 Feb 2025 14:09:16 -0300 Subject: [PATCH] feat(dev): add option to disable CSP (for development purposes only) --- src/invidious/routes/before_all.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/routes/before_all.cr b/src/invidious/routes/before_all.cr index 75cf25ec..8bfde738 100644 --- a/src/invidious/routes/before_all.cr +++ b/src/invidious/routes/before_all.cr @@ -62,7 +62,7 @@ module Invidious::Routes::BeforeAll "child-src 'self' blob:", "frame-src 'self'", "frame-ancestors " + frame_ancestors, - }.join("; ") + }.join("; ") if CONFIG.csp env.response.headers["Referrer-Policy"] = "same-origin"