summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-06-11 16:29:00 +0800
committerEltrac <hi@guhub.cn>2025-06-11 16:29:00 +0800
commit17c65bdcbf4a74ea3799a28dedd34c5fa5f58d8c (patch)
treedd089b1d3ac98fb1feb4c55e6562f000e9991f09
parent83e42bab31ac2ea14da45f807464931e94b4c2e2 (diff)
chore(HTTP): add headers allowing external scripts
Former-commit-id: ca353279421ad458b0dd18fca305301b2e8a4fba
-rw-r--r--static/_headers10
1 files changed, 10 insertions, 0 deletions
diff --git a/static/_headers b/static/_headers
new file mode 100644
index 00000000..a96d80e5
--- /dev/null
+++ b/static/_headers
@@ -0,0 +1,10 @@
+/*
+ Content-Security-Policy:
+ script-src 'self'
+ https://remark.guhub.cn
+ https://umami.guhub.cn
+ https://static.cloudflareinsights.com
+ 'unsafe-inline'
+ 'unsafe-eval';
+ img-src 'self' data: https://remark.guhub.cn;
+ connect-src 'self' https://remark.guhub.cn;