Configure Origin domain from Login Typescript application to Zitadel
How does the NextJS application determine what domain to send to Zitadel? As far as I can see it's not grabbint the Host header value of the incoming http request and forwarding that but the hostname of the Kubernetes Pod in k8s instead
10 Replies
I guess you are talking about the new login page, right?
Of the top of my head I would say it sends the configured domain from the app.
Yes indeed @FFO
@FFO
Unknown User•13mo ago
Message Not Public
Sign In & Join Server To View
@Erik I've added a Trusted Domain that I've already added to my instance though
Can you share the way you configured the login?
The Login UI / ts you mean ? 🤔
@FFO
Yeah that is what i meant.
To me it looks like your login ui sends the host
login-ui-7c68c56964-gt42d:3000
to the api.
@peintnermax do we already have docs around how we handle host headers, or how to configure that correctly?Any idea on this would be a major help1
@FFO or @peintnermax ? 🤔
@FFO @peintnermax kind reminder!
I'd be happy to help document it if it is missing 🙂
Hi Endre, we will come back to you as soon as possible
@adlerhurst afaik it seems that you already use X-Forwarded-Host ? :thonk: