From 5b95492f0ac2f0b5afd3f212c3d568c9b7d61d97 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 18 Apr 2026 08:46:53 +0000 Subject: fix(dev): route portless .localhost URL through app origin and proxy CORS --- apps/proxy/src/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'apps') diff --git a/apps/proxy/src/index.js b/apps/proxy/src/index.js index 592899c0..fa2503b5 100644 --- a/apps/proxy/src/index.js +++ b/apps/proxy/src/index.js @@ -18,6 +18,7 @@ const isPrivateHostname = (hostname) => hostname === "localhost" || hostname === "127.0.0.1" || hostname.endsWith(".local") || + hostname.endsWith(".localhost") || /^10\./.test(hostname) || /^192\.168\./.test(hostname) || /^172\.(1[6-9]|2\d|3[0-1])\./.test(hostname); -- cgit v1.2.3