From 0e3b3cc68d5a32891b59fba380a6a1711999cbe2 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Mon, 20 Jul 2026 23:53:12 -0400 Subject: [PATCH] fix(locations): add referrerPolicy to OSM tile layers Add referrerPolicy: 'origin' to the Leaflet tile layer in geolocation_list.html and geolocation_detail.html to match the other four templates that already had it. Without this, those templates send the full page URL as Referer, which can trigger OSM rate limiting (osm.wiki/blocked error). Also marks the task as DONE in PROJECT.org. --- PROJECT.org | 6 +++++- vrobbler/templates/locations/geolocation_detail.html | 9 +++++---- vrobbler/templates/locations/geolocation_list.html | 9 +++++---- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/PROJECT.org b/PROJECT.org index 18d0cba..ea35c42 100644 --- a/PROJECT.org +++ b/PROJECT.org @@ -185,7 +185,7 @@ events). - Timestamp picker (default to now) - Optional: barcode scanning for food/drinks via CameraX -* Backlog [1/26] :vrobbler:project:personal: +* Backlog [2/27] :vrobbler:project:personal: ** TODO [#C] After transition to linux add curl_cffi as webpage scrapper again :webpages:metadata: ** TODO [#C] Create small utility to clean up tracks scrobbled with wonky playback times :bug:music:scrobbles: :PROPERTIES: @@ -714,6 +714,10 @@ at /api/docs/. - Verify schema generates cleanly for all ViewSets - Fix any serializer issues that block schema generation +** DONE [#A] Fix referer bug in OSM tiles :bug:osm:templates: +:PROPERTIES: +:ID: dcfbe119-d761-b0a4-fb03-6ce920fda6bf +:END: ** DONE [#A] Fix bugs in lifeevent urls :bug:urls: :PROPERTIES: :ID: ac6c0102-4de7-b6e4-65de-8231752d9a31 diff --git a/vrobbler/templates/locations/geolocation_detail.html b/vrobbler/templates/locations/geolocation_detail.html index cf631a2..3f0cc8a 100644 --- a/vrobbler/templates/locations/geolocation_detail.html +++ b/vrobbler/templates/locations/geolocation_detail.html @@ -23,10 +23,11 @@ {% endblock %} diff --git a/vrobbler/templates/locations/geolocation_list.html b/vrobbler/templates/locations/geolocation_list.html index 0ec03cb..f40104a 100644 --- a/vrobbler/templates/locations/geolocation_list.html +++ b/vrobbler/templates/locations/geolocation_list.html @@ -21,10 +21,11 @@