Skip to content

Commit bf18b55

Browse files
StivenKNclaude
andcommitted
fix(server): stop forwarding X-Forwarded-Proto to the device hub
Tailscale Serve and T3 Connect add X-Forwarded-Proto: https. The hub builds its request origin from that header, so it no longer matched the Origin the proxy sets, and the Device panel screenshot failed with 403. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent f5b21d7 commit bf18b55

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎apps/server/src/device/DeviceHubProxy.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ const DROPPED_REQUEST_HEADERS = new Set([
6666
"dpop",
6767
"content-length",
6868
"accept-encoding",
69+
// expo-device-hub takes the request origin from X-Forwarded-Proto, so a
70+
// client's `https` fails serve-emu's Origin check.
71+
"x-forwarded-proto",
6972
]);
7073

7174
const isWebSocketUpgrade = (request: HttpServerRequest.HttpServerRequest) =>

0 commit comments

Comments
 (0)