Thursday, November 19, 2026Thu, Nov 19 AboutRSSSubscribe

GDS

Design tools and creative technology

Code & Web

Datasette Releases Datasette-Leaflet 0.3 Plugin Update

Datasette updated its datasette-leaflet plugin to version 0.3, ensuring compliance with OpenStreetMap's referrer policy. This change affects how plugins load tiles from OpenStreetMap.

Original reporting · simonwillison.net

Original: “datasette-leaflet 0.3”

Read “datasette-leaflet 0.3” at Simon Willison →

How this was written. GDS wrote this article with a language model from Simon Willison’s reporting (model: @cf/meta/llama-3.3-70b-instruct-fp8-fast); it describes that reporting rather than adding to it. The original, linked above, is the full story.

Key points from Simon Willison’s report

  • Datasette released the datasette-leaflet plugin version 0.3, updating the referrer policy to comply with OpenStreetMap's requirements.
  • The update sets the referrer policy on tile requests to strict-origin-when-cross-origin, passing the host but not the full path to the page.
  • The change ensures that Datasette plugins can continue using OpenStreetMap tiles without violating the service's terms.
  • The datasette-leaflet plugin remains a crucial component of the Datasette ecosystem, enabling the creation of interactive data visualizations.
  • The update demonstrates Datasette's commitment to ensuring its plugins comply with external services' policies.

Datasette, a platform for exploring and publishing data, has released an update to its datasette-leaflet plugin, according to Simon Willison. The plugin, now at version 0.3, adds the Leaflet JavaScript library to Datasette, allowing other plugins to depend on it.

The update addresses a specific issue related to OpenStreetMap's policy on referrer headers. OpenStreetMap requires that requests to its hosted tile server include a referrer header, which identifies the page making the request. However, Datasette table pages previously used the Referrer-Policy: no-referrer HTTP header, causing plugins that loaded tiles from OpenStreetMap to violate this policy.

The datasette-leaflet plugin is designed to load a bundled Leaflet library, making it available to other Datasette plugins. With the version 0.3 update, the plugin now sets the referrer policy on tile requests to strict-origin-when-cross-origin. This change ensures that the host is passed in the referrer header, but not the full path to the page, complying with OpenStreetMap's policy.

The update is significant because it allows Datasette plugins to continue using OpenStreetMap tiles without violating the service's terms. By setting the referrer policy correctly, the datasette-leaflet plugin enables seamless integration with OpenStreetMap, providing a better experience for users of Datasette and its plugins.

The release of datasette-leaflet 0.3 demonstrates Datasette's commitment to ensuring its plugins comply with external services' policies. By addressing the referrer header issue, Datasette maintains its ability to provide a robust and reliable platform for data exploration and publication.

As a result of this update, developers can continue to build plugins that rely on the Leaflet library and OpenStreetMap tiles, without worrying about violating OpenStreetMap's policy. The datasette-leaflet plugin remains a crucial component of the Datasette ecosystem, enabling the creation of interactive and informative data visualizations.

Looking ahead, the datasette-leaflet plugin is likely to continue playing a key role in the development of Datasette plugins, particularly those that utilize mapping and geospatial data. As the platform evolves, it is expected that the plugin will receive further updates to ensure ongoing compliance with external services and to provide new features and functionality.

Questions and answers

What is the purpose of the datasette-leaflet plugin?

The datasette-leaflet plugin loads a bundled Leaflet library, making it available to other Datasette plugins.

Why was the datasette-leaflet plugin updated?

The plugin was updated to comply with OpenStreetMap's policy on referrer headers, which requires requests to its hosted tile server to include a referrer header.

What change was made to the referrer policy in the datasette-leaflet plugin?

The referrer policy on tile requests was set to strict-origin-when-cross-origin, passing the host but not the full path to the page.

Read the full story at Simon Willison More from Saturday, November 14, 2026’s edition