From e7a99db03bf8e675f211d10e7c513d4de405cccb Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 7 Nov 2026 11:22:53 +0100 Subject: [PATCH] fix(privacy): the PDF print view uses the bundled Poppins, not Google Fonts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The trip PDF's print view linked Poppins from fonts.googleapis.com, so printing a trip sent the reader's IP address to Google, the case German courts treated as a GDPR breach (LG München I, 3 O 17493/20). It now declares the Poppins files TREK already ships under /fonts, and the content security policy no longer allows fonts.googleapis.com or fonts.gstatic.com, so no font can be fetched from Google again by accident. --- client/src/components/PDF/TripPDF.tsx | 7 ++++++- server/src/middleware/globalMiddleware.ts | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/client/src/components/PDF/TripPDF.tsx b/client/src/components/PDF/TripPDF.tsx index 3691a3706..51a188faf 100644 --- a/client/src/components/PDF/TripPDF.tsx +++ b/client/src/components/PDF/TripPDF.tsx @@ -610,8 +610,13 @@ export async function downloadTripPDF({ trip, days, places, assignments: allStor ${escHtml(trip?.title || tr('pdf.travelPlan'))} -