datasette-leaflet 0.3 sends an origin referrer on tile requests
Original title: datasette-leaflet 0.3
The change stops Datasette pages from violating OpenStreetMap’s rule that tile requests include a referrer.
Simon Willison released datasette-leaflet 0.3, the Datasette plugin that bundles Leaflet for other plugins. Datasette table pages used Referrer-Policy: no-referrer, so OpenStreetMap tile loads omitted the required referrer. The plugin now sets strict-origin-when-cross-origin on those tile requests, sending the host but not the full page path.
- OpenStreetMap requires a referrer header on hits to its hosted tile server.
- The new policy is applied on the tile requests themselves, not the whole page.
- Organizations
- OpenStreetMap
From the original article
Release: datasette-leaflet 0. 3 OpenStreetMap have a very reasonable policy that hits to their hosted tile server should send a referrer header . Datasette table pages used the Referrer-Policy: no-referrer HTTP header, causing plugins that loaded tiles from OpenStreetMap to violate that policy.
simonwillison.net
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.