From 17bfb4d1073b0b95fcddcffa81c3bc372e33c7d7 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 4 Nov 2026 00:09:37 +0000 Subject: [PATCH] test(e2e-ui): trust loopback for X-Forwarded-Prefix in the UI test server The host believes X-Forwarded-Prefix only from a trusted proxy, so the specs that mount the app under a prefix got a 404. The test server now trusts loopback, where its browser clients connect from. Assisted-by: Claude:claude-sonnet-5-5 go-test --- tests/e2e-ui/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e-ui/main.go b/tests/e2e-ui/main.go index 37920782d7..dfd4cb2c4c 100644 --- a/tests/e2e-ui/main.go +++ b/tests/e2e-ui/main.go @@ -170,6 +170,10 @@ func main() { // built-in bash: with the default "ask" (no accounts) every turn would // wait for a card nobody answers. The UI specs stub the host commands. config.WithChatsHostExec("off"), + // The specs that test a reverse proxy mount send X-Forwarded-Prefix + // from the browser, which reaches the server over loopback. The host + // believes the header only from a trusted proxy. + config.WithTrustedProxies("127.0.0.1/32,::1/128"), config.EnableTracing, config.EnableBackendLogging, }