OpenStreetMap's policy asks that hits to its hosted tile server send a referrer header…
…but Datasette table pages used the Referrer-Policy: no-referrer header, causing plugins that loaded OpenStreetMap tiles to violate that policy. datasette-leaflet 0.3 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.
AI-generated: summaries written by AI from the linked sources. How we use AI
Source Brief
OpenStreetMap's policy asks that hits to its hosted tile server send a referrer header, but Datasette table pages used the Referrer-Policy: no-referrer header, causing plugins that loaded OpenStreetMap tiles to violate that policy. datasette-leaflet 0.3 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.
Practical Tip
When a plugin loads third-party tiles or resources, set the referrer policy on those specific requests (e.g., strict-origin-when-cross-origin) rather than relying on a page-wide no-referrer header, so you pass the host but not the full page path.