From 7d9b7afce62ba2f08281aa80441f20429297943f Mon Sep 17 00:00:00 2001 From: Abdul Wahab Date: Sat, 15 Aug 2026 00:01:34 +0500 Subject: [PATCH] Allow bare loopback Host/Origin on port 80, where browsers omit the suffix Bugbot caught that the exact-match allowlists 403 every request on --port 80 because browsers drop the default-port suffix; other ports stay strict. Written with AI assistance under maintainer direction. Co-authored-by: Cursor --- skill/scripts/serve-question.mjs | 8 ++++++-- tests/serve-question.test.mjs | 8 ++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/skill/scripts/serve-question.mjs b/skill/scripts/serve-question.mjs index be5965f20..e08052c48 100644 --- a/skill/scripts/serve-question.mjs +++ b/skill/scripts/serve-question.mjs @@ -1568,12 +1568,16 @@ ${buildPath?.toggle ? `