Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

fix(CSP): Paths that end in / match any path they are a prefix of.

jubnl9ebca725ae8d
diff --git a/server/src/app.ts b/server/src/app.ts
index bc36d97c3..33bf1ffd2 100644
--- a/server/src/app.ts
+++ b/server/src/app.ts
@@ -84,7 +84,7 @@ export function createApp(): express.Application {
"https://unpkg.com", "https://open-meteo.com", "https://api.open-meteo.com",
"https://geocoding-api.open-meteo.com", "https://api.exchangerate-api.com",
"https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_50m_admin_0_countries.geojson",
- "https://router.project-osrm.org/route/v1"
+ "https://router.project-osrm.org/route/v1/"
],
fontSrc: ["'self'", "https://fonts.gstatic.com", "data:"],
objectSrc: ["'none'"],