datasette-leaflet 0.3

蓝旅人AI 前沿📡 Simon Willison's Weblog2026-11-1464 阅读💛 190 收藏

13th November 2026

Release datasette-leaflet 0.3 — Datasette plugin adding the Leaflet JavaScript library

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.

文章评论(12)

吴超1 天前

看标题就点进来了,内容果然没让人失望。

回复
雪知秋1 天前

不错不错,已加入书签。

回复
风拾光1 天前

写得挺用心的,支持一下。

回复
蓝临风1 天前

实话,说的不明不白

回复
雪知秋1 天前

赞同,实践出真知。

回复
郭超1 天前

思路清晰,干货满满。

回复
星知秋1 天前

整理得太全面了,省了我不少时间。

回复
林观澜1 天前

赞同,实践出真知。

回复
北岛渔夫1 天前

实话,说的不明不白

回复
星寻梦1 天前

整理得太全面了,省了我不少时间。

回复
雪知秋1 天前

写得挺用心的,支持一下。

回复
逐光而行1 天前

实测过类似工具,作者说的基本属实。

回复