aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils.ts')
-rw-r--r--src/lib/utils.ts2
1 files changed, 1 insertions, 1 deletions
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",