diff options
| author | Adam Soltys <[email protected]> | 2026-02-06 17:24:28 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-06 17:24:28 +0000 |
| commit | e03bc9bd0d7360899c5649caca6dc832181ac0dc (patch) | |
| tree | 710216a85d1ff6c24487b4adc9da0fdc36b3b9c7 /src/lib | |
| parent | 8ec5dda44f4676a2e5dae609792710b0719cec43 (diff) | |
| download | coinos-ui-e03bc9bd0d7360899c5649caca6dc832181ac0dc.tar.gz coinos-ui-e03bc9bd0d7360899c5649caca6dc832181ac0dc.zip | |
forward host header
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/utils.ts | 2 |
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", |
