use origin header instead of host

This commit is contained in:
Max Peintner
2024-12-03 14:31:50 +01:00
parent 30091ddb17
commit 017c3215eb
9 changed files with 32 additions and 40 deletions

View File

@@ -31,7 +31,7 @@ export default async function Page(props: {
const loginSettings = await getLoginSettings(organization);
const host = (await headers()).get("host");
const origin = (await headers()).get("origin");
return (
<DynamicTheme branding={branding}>
@@ -70,7 +70,7 @@ export default async function Page(props: {
organization={organization}
method={method}
loginSettings={loginSettings}
host={host}
origin={origin}
code={code}
></LoginOTP>
)}