about summary refs log tree commit diff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2025-01-02 14:50:34 +0300
committerVika <vika@fireburn.ru>2025-01-02 14:50:34 +0300
commitbbfca3190f3c3cac5eefd74ed30d0c4b14f08f0c (patch)
treeff2983d59070b34d61719c18196c361db1427fa3 /src/lib.rs
parentac1defca9d81849f1a61d6cc7476f99939a4aa7c (diff)
downloadkittybox-bbfca3190f3c3cac5eefd74ed30d0c4b14f08f0c.tar.zst
Harden default CSP
Change-Id: I31362b3ec779a1eaea54c0d9567daa5de0ae0fc0
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 3fb6845..6d8e784 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -311,7 +311,7 @@ St: Clone + Send + Sync + 'static
         .layer(tower_http::set_header::SetResponseHeaderLayer::appending(
             axum::http::header::CONTENT_SECURITY_POLICY,
             axum::http::HeaderValue::from_static(
-                "default-src https:; img-src https:; script-src 'self'; style-src 'self'; script-src-attr 'none'; base-uri 'none'"
+                "default-src 'self'; img-src https:; script-src 'self'; style-src 'self'; base-uri 'none'; object-src 'none'"
             )
         ))
 }