← 返回列表

datasette-leaflet 0.3

单站 Simon Willison 发布 2026-11-13T22:30:54+00:00 入库 2026-11-17T04:57:58

13th November 2026

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.

datasette-leaflet is the plugin that loads a bundled Leaflet so other Datasette plugins can depend on it. It now sets the referrer policy on the tile requests themselves to strict-origin-when-cross-origin, passing the host but not the full path to the page.

Recent articles

原文链接:https://simonwillison.net/2026/Nov/13/datasette-leaflet/