From 15e9bfba2f62356324d841718a48e26bad3fa5d6 Mon Sep 17 00:00:00 2001 From: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co> Date: Sun, 28 Jun 2026 14:06:07 -0400 Subject: [PATCH] fix(dev): include loopback host aliases Co-authored-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co> Signed-off-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@sprout-oss.stage.blox.sqprod.co> --- scripts/seed-local-community.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/seed-local-community.sh b/scripts/seed-local-community.sh index 1eb9a220f6..9a79761c2d 100755 --- a/scripts/seed-local-community.sh +++ b/scripts/seed-local-community.sh @@ -49,12 +49,15 @@ hosts = [] if primary: hosts.append(primary) -# Local desktop/dev tooling has historically used both localhost and 127.0.0.1. -# Under row-zero host binding those are distinct hosts, so seed both loopback -# spellings for local dev to avoid a fail-closed 404 when one side uses the -# alternate authority. Non-loopback deployments seed only RELAY_URL's authority. -if host in {"localhost", "127.0.0.1"} and port: - hosts.extend([f"localhost:{port}", f"127.0.0.1:{port}"]) +# Local desktop/dev tooling has historically used both localhost and 127.0.0.1, +# and some HTTP clients can omit the default/non-default port in Host handling. +# Under row-zero host binding these are distinct hosts, so seed loopback aliases +# for local dev to avoid a fail-closed 404 when one side uses an alternate +# authority. Non-loopback deployments seed only RELAY_URL's authority. +if host in {"localhost", "127.0.0.1"}: + hosts.extend(["localhost", "127.0.0.1"]) + if port: + hosts.extend([f"localhost:{port}", f"127.0.0.1:{port}"]) seen = [] for h in hosts: