aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-06 17:24:28 +0000
committerAdam Soltys <[email protected]>2026-02-06 17:24:28 +0000
commite03bc9bd0d7360899c5649caca6dc832181ac0dc (patch)
tree710216a85d1ff6c24487b4adc9da0fdc36b3b9c7 /src/lib/utils.ts
parent8ec5dda44f4676a2e5dae609792710b0719cec43 (diff)
downloadcoinos-ui-e03bc9bd0d7360899c5649caca6dc832181ac0dc.tar.gz
coinos-ui-e03bc9bd0d7360899c5649caca6dc832181ac0dc.zip
forward host header
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",