This is an automated email from the ASF dual-hosted git repository.
yufei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 42f5c578 Site: Explicitly specify CSP policy (#944)
42f5c578 is described below
commit 42f5c578a96f909dc5b9c5b74fe056d5b0c08fab
Author: Prashant Singh <[email protected]>
AuthorDate: Tue Feb 4 16:19:49 2025 -0800
Site: Explicitly specify CSP policy (#944)
---
site/hugo.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/site/hugo.yaml b/site/hugo.yaml
index 109c6075..83f08167 100644
--- a/site/hugo.yaml
+++ b/site/hugo.yaml
@@ -251,3 +251,11 @@ privacy:
simple: true
youtube:
privacyEnhanced: true
+
+server:
+ headers:
+ for: /**
+ values:
+ Content-Security-Policy: >2
+ script-src 'self' https://cdn.jsdelivr.net 'unsafe-inline'
'unsafe-eval' https://analytics.apache.org/ https://cdn.jsdelivr.net
+