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.
This commit is contained in:
@ -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
|
||||
|
||||
@ -23,10 +23,11 @@
|
||||
|
||||
<script>
|
||||
var map = L.map('map').setView([{{object.lat}}, {{object.lon}}], 13);
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxZoom: 19,
|
||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
||||
}).addTo(map);
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxZoom: 19,
|
||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
||||
referrerPolicy: 'origin'
|
||||
}).addTo(map);
|
||||
var marker = L.marker([{{object.lat}}, {{object.lon}}]).addTo(map);
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
@ -21,10 +21,11 @@
|
||||
|
||||
<script>
|
||||
var map = L.map('map').setView([{{object_list.0.lat}}, {{object_list.0.lon}}], 15);
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxZoom: 20,
|
||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
||||
}).addTo(map);
|
||||
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxZoom: 20,
|
||||
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
|
||||
referrerPolicy: 'origin'
|
||||
}).addTo(map);
|
||||
var marker = L.marker([{{object_list.0.lat}}, {{object_list.0.lon}}]).addTo(map);
|
||||
var latest_path = [
|
||||
{% for l in object_list %}
|
||||
|
||||
Reference in New Issue
Block a user