Skip to content

Leaflet map on at least the info page refuses tile access #2160

Description

@fridtjof

Describe the bug
The map used on at least the info page complains about a missing Referer header. Documentation from OSM, also for leaflet and django-leaflet specifically: https://wiki.openstreetmap.org/wiki/Referer

Looking at devtools, the leaflet version in use seems to be woefully out of date (0.7.7 from 2015):

Image

Setting a referrerPolicy on TileLayers needs at least leaflet 1.8.0.

This seems to be a vendored copy? https://github.com/bornhack/bornhack-website/blob/main/src/static_src/vendor/leaflet/leaflet.js

The project dependencies also list django-leaflet 0.33.0, which would provide leaflet version 1.9.3, which is not used in this (and many other parts?) part of the website.

A quick workaround could be to just add an appropriate meta tag to all view templates that use leaflet < 1.8.0, according to the OSM documentation.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://bornhack.dk/bornhack-2026/info/#the-venue

Screenshots

Map screenshot showing error tiles complaining about a missing Referer header

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions