radar

ONE Sentinel

smart_toyAI/PROMPT ENGINEERING

datasette-referrer-policy 0.1

sourceSimon Willison
calendar_todayMay 6, 2026
schedule1 min read
lightbulb

EXECUTIVE SUMMARY

Datasette Referrer Policy Update Enhances Map Functionality

Summary

The article discusses the release of datasette-referrer-policy 0.1, addressing issues with OpenStreetMap tiles not displaying correctly on the Datasette global-power-plants demo due to two bugs. The update includes a new plugin to adjust the Referrer-Policy header.

Key Points

  • Release version: datasette-referrer-policy 0.1
  • Issue: OpenStreetMap tiles not displaying due to two bugs.
  • First bug: CAPTCHA triggered for .json fetch requests, preventing user prompts.
  • Second bug: OpenStreetMap blocks tile requests with a Referrer-Policy: no-referrer header.
  • Default behavior of Datasette is to use the no-referrer policy.
  • New plugin developed using Codex and GPT-5.5 to modify the Referrer-Policy header.
  • Tags associated: openstreetmap, http, datasette.

Analysis

The release of datasette-referrer-policy 0.1 is significant for developers using Datasette, as it resolves critical issues affecting map functionality. By allowing for a configurable Referrer-Policy, developers can ensure better compatibility with external services like OpenStreetMap, enhancing user experience.

Conclusion

IT professionals should consider updating to datasette-referrer-policy 0.1 to resolve existing bugs and improve map integration in their applications. Additionally, they should explore the new plugin for adjusting referrer policies as needed.