From 4432fbcee01a3e78fc3ff176077a8f784ae8317f Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 2 Jan 2025 13:52:19 +0300 Subject: Vendor fonts into Kittybox These fonts are licensed under OFL 1.1, which means I can freely redistribute them. Ain't that nice? Change-Id: Ide32286305680865652db17c8d482b5ac0f20a50 --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index fe5b800..3fb6845 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -296,7 +296,7 @@ St: Clone + Send + Sync + 'static .route("/.kittybox/health", get(health_check::)) .nest("/.kittybox/login", crate::login::router::()) .route( - "/.kittybox/static/{path}", + "/.kittybox/static/{*path}", axum::routing::get(crate::frontend::statics) ) .route("/.kittybox/coffee", get(teapot_route)) @@ -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' fonts.googleapis.com; script-src-attr 'none'; base-uri 'none'" + "default-src https:; img-src https:; script-src 'self'; style-src 'self'; script-src-attr 'none'; base-uri 'none'" ) )) } -- cgit 1.4.1