From e89ba2ecfcf6a8a57a7b0dc78fd499148660421d Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 1 Apr 2026 12:17:53 +0200 Subject: [PATCH] fix: add referrerPolicy to TileLayer to fix OSM tile blocking (#264) OpenStreetMap requires a Referer header per their tile usage policy. Without it, tiles are blocked with "Access blocked" error. --- client/src/components/Map/MapView.tsx | 1 + client/src/pages/SharedTripPage.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/Map/MapView.tsx b/client/src/components/Map/MapView.tsx index 2a89f6a..7489ef6 100644 --- a/client/src/components/Map/MapView.tsx +++ b/client/src/components/Map/MapView.tsx @@ -485,6 +485,7 @@ export const MapView = memo(function MapView({ attribution='© OpenStreetMap' maxZoom={19} keepBuffer={4} + referrerPolicy="strict-origin-when-cross-origin" /> diff --git a/client/src/pages/SharedTripPage.tsx b/client/src/pages/SharedTripPage.tsx index 4d304a6..d8fb54a 100644 --- a/client/src/pages/SharedTripPage.tsx +++ b/client/src/pages/SharedTripPage.tsx @@ -168,7 +168,7 @@ export default function SharedTripPage() { {activeTab === 'plan' && (<>
- + {mapPlaces.map((p: any) => (