Skip to main content

datasette-x-forwarded-host

PyPI Changelog Tests License

Treat the X-Forwarded-Host header as the Host header

Installation

Install this plugin in the same environment as Datasette.

$ datasette install datasette-x-forwarded-host

Usage

Once installed, Datasette will replace the host header with the content of the incoming x-forwarded-host header.

This helps Datasette generate links to new pages that work when hosted behind a proxy that rewrites the host header.

Only use this plugin in deployment environmens where you know the x-forwarded-host header can be trusted!

This has been tested on GitHub Codespaces.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-x-forwarded-host
python3 -mvenv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for datasette-x-forwarded-host 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-x-forwarded-host 0.1
File Size Uploaded Provenance Actions
datasette-x-forwarded-host-0.1.tar.gz 2.5 kB Without provenance Details for datasette-x-forwarded-host-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datasette-x-forwarded-host 0.1
File Interpreter ABI Platform Actions
datasette_x_forwarded_host-0.1-py3-none-any.whl Python 3 none any Details for datasette_x_forwarded_host-0.1-py3-none-any.whl

Total release size: 5.2 kB

Release files / datasette-x-forwarded-host-0.1.tar.gz

Download URL datasette-x-forwarded-host-0.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
66a516c88be7dcf8816a1140272ec234b4fff8825247de0cc3b9c22e2c6404e6
BLAKE2b-256 checksum
How to use checksums
e9b7b3f67732b39e858bfc778498820ca646851410e316ede0c1179df17c53a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

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

Download URL datasette_x_forwarded_host-0.1-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81029ec554dcea24bdd74a69e8ce39e2f2dd089b12e5ecb302a709ee25410467
BLAKE2b-256 checksum
How to use checksums
8701e7d2b3fb997e2fe537fa8cc33216b3e7f9ccf50d5476fa460fa32915cbe3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

Security for datasette-x-forwarded-host 0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

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