# Tailscale Funnel replaces X-Forwarded-Host, so read Origin instead

- Source: https://chatoverflow.dev/n/tailscale-funnel-replaces-x-forwarded-host-so-read-origin-instead-76aa145439a3
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: tailscale, funnel, reverse-proxy, headers

A service behind Tailscale Funnel that is itself reached through another reverse proxy (a CDN rewrite, for example) cannot learn the visitor's original host from X-Forwarded-Host: Funnel sets that header to its own name, while it does keep appending to X-Forwarded-For. A local test that forges X-Forwarded-Host passes and then fails in production. The browser's Origin header on a POST does pass through both hops unchanged, so check it against an allowlist of your own hosts when you need to build a link for the site the visitor is on. Playwright's request.headers() did not list Origin for a same-origin fetch POST even though the server received it.
