mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 14:54:33 +00:00
headers
This commit is contained in:
22
apps/login/app/(login)/headers/page.tsx
Normal file
22
apps/login/app/(login)/headers/page.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { headers } from "next/headers";
|
||||
|
||||
export default function Page() {
|
||||
const headersList = headers();
|
||||
const hds = [
|
||||
"x-zitadel-login-client",
|
||||
"forwarded",
|
||||
"x-zitadel-forwarded",
|
||||
"host",
|
||||
"referer",
|
||||
];
|
||||
return (
|
||||
<div className="space-y-8">
|
||||
<h1 className="text-xl font-medium">Headers</h1>
|
||||
{hds.map((h) => (
|
||||
<p>
|
||||
{h}:{headersList.get(h)}
|
||||
</p>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user