From 8d75f9a31e4e2cd018a8b543c443a48acfc58d8b Mon Sep 17 00:00:00 2001 From: CritasWang Date: Tue, 11 Mar 2025 10:35:34 +0800 Subject: [PATCH] fix(docs): CSP mods to re-enable Algolia search --- src/.vuepress/public/.htaccess | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/.vuepress/public/.htaccess b/src/.vuepress/public/.htaccess index 7c7176574..9922dfdee 100644 --- a/src/.vuepress/public/.htaccess +++ b/src/.vuepress/public/.htaccess @@ -5,3 +5,5 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /404.html [L] ErrorDocument 404 /404.html + +Header set Content-Security-Policy "default-src data: blob: 'self' *.apache.org *.githubusercontent.com *.github.com *.algolia.net *.algolianet.com *.timecho.com *.apachecon.com *.communityovercode.org 'unsafe-inline' 'unsafe-eval'; frame-src 'self' data: blob:; frame-ancestors 'self'; worker-src 'self' data: blob:; img-src 'self' blob: data: https: *.apache.org www.apachecon.com; style-src 'self' 'unsafe-inline' data:;"