Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

chore(photos):remove-osm-comments-and-add-release-note

Aswin Asok6d289a89c58b
diff --git a/desktop/changes/openstreetmap-tiles.md b/desktop/changes/openstreetmap-tiles.md
new file mode 100644
index 0000000000..52317f9f17
--- /dev/null
+++ b/desktop/changes/openstreetmap-tiles.md
@@ -0,0 +1 @@
+- Fixed OpenStreetMap tiles failing to load when viewing photo locations in some self-hosted setups. Thanks to @Himanshucodess for the fix and @daltux for reporting it.
diff --git a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
index 332df4a48e..70ab014357 100644
--- a/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
+++ b/web/apps/photos/src/components/Collections/CollectionMapDialog.tsx
@@ -1500,7 +1500,6 @@ const MapCanvas = React.memo(function MapCanvas({
url="https://tile.openstreetmap.org/{z}/{x}/{y}.png"
maxZoom={MAX_MAP_ZOOM}
updateWhenZooming
- // OSM blocks tile requests without a Referer.
referrerPolicy="strict-origin-when-cross-origin"
/>
<MapControls useMap={useMap} />
diff --git a/web/packages/gallery/components/FileInfo.tsx b/web/packages/gallery/components/FileInfo.tsx
index a8b8fe4cc2..5de787fdc5 100644
--- a/web/packages/gallery/components/FileInfo.tsx
+++ b/web/packages/gallery/components/FileInfo.tsx
@@ -987,7 +987,6 @@ const MapBox: React.FC<MapBoxProps> = ({ location, mapEnabled }) => {
leaflet
.tileLayer(urlTemplate, {
attribution,
- // OSM blocks tile requests without a Referer.
referrerPolicy: "strict-origin-when-cross-origin",
})
.addTo(map);
diff --git a/web/packages/new/photos/components/EditLocationDialog.tsx b/web/packages/new/photos/components/EditLocationDialog.tsx
index 21442b10be..eae0799251 100644
--- a/web/packages/new/photos/components/EditLocationDialog.tsx
+++ b/web/packages/new/photos/components/EditLocationDialog.tsx
@@ -438,7 +438,6 @@ const EditableMap: React.FC<EditableMapProps> = ({
leaflet
.tileLayer(urlTemplate, {
attribution,
- // OSM blocks tile requests without a Referer.
referrerPolicy: "strict-origin-when-cross-origin",
})
.addTo(map);