From 95e00e79726f4c29230cf9e39c76ea15ad9adf46 Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 2 Jan 2025 12:41:25 +0300 Subject: Fix CSP and allow Google Fonts I really need to figure out how to rip fonts from Google Fonts. Change-Id: I66f62ca639bf399223a1cd030d057bdcc3bc0de1 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'" ) )) } -- cgit 1.4.1