Skip to main content

datasette-referrer-policy

PyPI Changelog Tests License

Set the Referrer-Policy header for a Datasette site

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-referrer-policy

Usage

Installing this plugin causes every page on your Datasette instance to return this header:

Referrer-Policy: strict-origin-when-cross-origin

You can configure a different policy using this configuration:

plugins:
  datasette-referrer-policy:
    policy: no-referrer

See MDN: Referrer-Policy header for other values.

Development

To set up this plugin locally, first checkout the code. You can confirm it is available like this:

cd datasette-referrer-policy
# Confirm the plugin is visible
uv run datasette plugins

To run the tests:

uv run pytest

Release files for datasette-referrer-policy 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-referrer-policy 0.1
File Size Uploaded
datasette_referrer_policy-0.1.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-referrer-policy 0.1
File Interpreter ABI Platform
datasette_referrer_policy-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / datasette_referrer_policy-0.1.tar.gz

Download URL datasette_referrer_policy-0.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8b016946877f15b2b4d96a3fcee6869ccb81b6812bac33d116093ac023f148d4
BLAKE2b-256 checksum
How to use checksums
1e660d32995727cd384ca0881dc0615445435bce1fe6e8ec5b801520fcf4efdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 5, 2026.

Transparency log

Release files / datasette_referrer_policy-0.1-py3-none-any.whl

Download URL datasette_referrer_policy-0.1-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
949dbe682fe3c9f377757afc281d28e5e210721132061ed8c2a9473dd2090bdf
BLAKE2b-256 checksum
How to use checksums
01fb921b41e948cac4be1a98b1d8b371cff44f6944ceacc87c4716f346ac1bba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page