Skip to content

Permit configuring ALLOWED_HOSTS in LOCALHOST mode#52

Open
jbwar22 wants to merge 2 commits into
mainfrom
jw/allowed-hosts
Open

Permit configuring ALLOWED_HOSTS in LOCALHOST mode#52
jbwar22 wants to merge 2 commits into
mainfrom
jw/allowed-hosts

Conversation

@jbwar22
Copy link
Copy Markdown

@jbwar22 jbwar22 commented May 4, 2026

When developing, it might be desirable to connect via a different hostname.

For example, configuring a custom hostname in /etc/hosts such that a password manager can differentiate between projects for autofill.

Additionally can be used to allow connecting via other devices on local network (to test mobile view) by allowing adding the server's local IP to ALLOWED_HOSTS (and separately configuring firewall)

Also fix CSRF in these cases, especially in combination with a self-run https reverse proxy (e.g. tailscale serve, also useful for testing mobile view)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant