Compare commits

...

2 Commits

Author SHA1 Message Date
ruinivist da358a1857 feat: add security headers to caddyfile
Added `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, and `Content-Security-Policy` to the Caddyfile to prevent common web vulnerabilities like XSS, MIME sniffing, and Clickjacking.
2026-06-02 08:21:55 +00:00
ruinivist 4feb9f9b7a feat: add security headers to caddyfile
Added `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, and `Content-Security-Policy` to the Caddyfile to prevent common web vulnerabilities like XSS, MIME sniffing, and Clickjacking.
2026-06-02 08:14:48 +00:00
+7
View File
@@ -6,6 +6,13 @@
:80 {
encode zstd gzip
header {
X-Frame-Options "DENY"
X-Content-Type-Options "nosniff"
Referrer-Policy "strict-origin-when-cross-origin"
Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:;"
}
handle /mcp {
reverse_proxy 127.0.0.1:3001
}