From 2519d68c571c921ae76be7fef1e564821e2ec097 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Mon, 2 May 2022 14:29:26 +0200 Subject: [PATCH] Account for localhost. (with trailing dot) in origin resolving See https://github.com/whatwg/url/issues/693 for context. --- fetch.bs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch.bs b/fetch.bs index 511b307a2..c0248a180 100644 --- a/fetch.bs +++ b/fetch.bs @@ -2362,7 +2362,8 @@ functionality. « origin's host ».
  • If origin's host's public suffix is - "localhost", then return « ::1, 127.0.0.1 ». + "localhost" or "localhost.", then return « ::1, + 127.0.0.1 ».

  • Perform an implementation-defined operation to turn origin into a