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
This commit is contained in:
Ettore Di Giacinto committed 2026-11-04 00:09:39 +00:00
1 parent e351118f85
commit 17bfb4d107
1 file changed
+4
+4
View File
@@ -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,
}