Invidious is an alternative front-end to YouTube
Add 'blob' to CSP
Omar Roth4bc6501b8d6d
diff --git a/src/invidious.cr b/src/invidious.crindex c7b42578..b0900aa0 100644--- a/src/invidious.cr+++ b/src/invidious.cr@@ -169,7 +169,7 @@ proxies = PROXY_LISTbefore_all do |env|env.response.headers["X-XSS-Protection"] = "1; mode=block;"env.response.headers["X-Content-Type-Options"] = "nosniff"- env.response.headers["Content-Security-Policy"] = "default-src data: 'self' 'unsafe-inline' 'unsafe-eval'; media-src 'self' https://*.googlevideo.com:443"+ env.response.headers["Content-Security-Policy"] = "default-src blob: data: 'self' 'unsafe-inline' 'unsafe-eval'; media-src 'self' https://*.googlevideo.com:443"env.response.headers["Referrer-Policy"] = "same-origin"if Kemal.config.ssl || config.https_only