{"version":"2.1.324","anchor":"preview-tunnel-host-header-and-cookie-forwarding","canonical_anchor":"preview-tunnel-host-header-and-cookie-forwarding","heading":"Preview tunnels can present the app as localhost and pass its cookies along","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324\/e\/preview-tunnel-host-header-and-cookie-forwarding","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.324","markdown":"### Preview tunnels can present the app as localhost and pass its cookies along\n\nThe preview tunnel can now send `localhost` as the host when the request comes from the app's own address, and can forward the app's cookies\n\n**Unclear.** It is not clear whether anything in Claude Code turns these two options on yet.\n\n**What**\n\nA preview tunnel is the connection that lets you open a development server running in a remote session as if it were local. Previously it always told that server the request was for `127.0.0.1` and a port number.\n\nIt can now behave differently in two cases:\n\n- Host name: when the request comes from the app's own address, the tunnel can say the request is for `localhost` instead.\n\n- Cookies: when the tunnel is set to forward app cookies, it can pass the app's cookies through to the server.\n\n**Why**\n\nThis affects previews of development servers in remote sessions. Some apps behave differently depending on the host name they see, or need their cookies to keep you logged in.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}