From e03bc9bd0d7360899c5649caca6dc832181ac0dc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 6 Feb 2026 17:24:28 +0000 Subject: forward host header --- src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/utils.ts b/src/lib/utils.ts index bc5df67a..92b602d5 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -178,7 +178,7 @@ export const login = async ( accept: "application/json", "cf-connecting-ip": ip, }; - if (host) headers["host"] = host; + if (host) headers["x-forwarded-host"] = host; const res = await fetch(`${base}/login`, { method: "POST", -- cgit v1.2.3