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.

allow mapbox-gl in CSP (api, tiles, events, blob workers)

Maurice4a8260dfbca6
diff --git a/server/src/app.ts b/server/src/app.ts
index f9c190d3a..923c9d89e 100644
--- a/server/src/app.ts
+++ b/server/src/app.ts
@@ -94,8 +94,11 @@ 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/",
+ "https://api.mapbox.com", "https://*.tiles.mapbox.com", "https://events.mapbox.com"
],
+ workerSrc: ["'self'", "blob:"],
+ childSrc: ["'self'", "blob:"],
fontSrc: ["'self'", "https://fonts.gstatic.com", "data:"],
objectSrc: ["'none'"],
frameSrc: ["'none'"],