diff options
author | Vika <vika@fireburn.ru> | 2025-01-02 12:41:25 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2025-01-02 12:41:25 +0300 |
commit | 95e00e79726f4c29230cf9e39c76ea15ad9adf46 (patch) | |
tree | 5647c3b586d1064678ff77efa319322538416776 /src | |
parent | f358d8f819c4177a9d716d7e33603e644a9a0c99 (diff) | |
download | kittybox-95e00e79726f4c29230cf9e39c76ea15ad9adf46.tar.zst |
Fix CSP and allow Google Fonts
I really need to figure out how to rip fonts from Google Fonts. Change-Id: I66f62ca639bf399223a1cd030d057bdcc3bc0de1
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index 177dac4..fe5b800 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:'; script-src 'self'; style-src 'self'; script-src-attr 'none'; base-uri 'none'" + "default-src https:; img-src https:; script-src 'self'; style-src 'self' fonts.googleapis.com; script-src-attr 'none'; base-uri 'none'" ) )) } |