From d62b40cf69980ca05b3ec70104d976f22ddff918 Mon Sep 17 00:00:00 2001 From: Ethan Yoo Date: Tue, 12 Nov 2024 21:17:19 -0500 Subject: [PATCH] Fix CSP --- static/.htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/.htaccess b/static/.htaccess index da497d2..0cca2eb 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -6,7 +6,7 @@ Header always set X-Content-Type-Options "nosniff" Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" "expr=%{req_novary:X-Forwarded-Proto}=='https'" Header always set Referrer-Policy "no-referrer" Header always set Permissions-Policy "accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=()" -Header always set Content-Security-Policy "default-src 'none'; img-src 'self'; style-src 'self' 'sha256-LjAT7bhFv1zP58aCXKasCTIJMEOvFjjXkmhr/ekDANM='; base-uri 'self'; connect-src https://analytics.ethanyoo.com/ 'self'; form-action https://duckduckgo.com; frame-ancestors 'none'; script-src 'self' 'sha256-RzxOh5mdjWlyRcbdPibUQG7O7WXZSthwslaZe52R7jE='; script-src-elem 'self' 'https://analytics.ethanyoo.com'; worker-src 'self'; upgrade-insecure-requests;" +Header always set Content-Security-Policy "default-src 'none'; img-src 'self'; style-src 'self' 'sha256-LjAT7bhFv1zP58aCXKasCTIJMEOvFjjXkmhr/ekDANM='; base-uri 'self'; connect-src 'self' https://analytics.ethanyoo.com; form-action https://duckduckgo.com; frame-ancestors 'none'; script-src 'self'; script-src-elem 'self' 'sha256-RzxOh5mdjWlyRcbdPibUQG7O7WXZSthwslaZe52R7jE='; worker-src 'self'; upgrade-insecure-requests;" # Set custom error page: https://faq.nearlyfreespeech.net/full/error ErrorDocument 404 /404.html