Skip to content
NewA calmer, faster ZeroHour
Toolsinfo

datasette-leaflet 0.3 sends an origin referrer on tile requests

Original title: datasette-leaflet 0.3

Simon Willison ()
Part of a story covered by 2 sourcesMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

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.

Key facts
  • 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.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

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.

Simon Willison

simonwillison.net

Read the full article at Simon Willison

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.