How do I read the visitor's domain in my server-rendered site?

Read the x-forwarded-host header instead of Host — Forte sits in front of your app, so Host carries an internal value. Most frameworks handle this automatically; if you use an auth library like Auth.js/NextAuth, enable its trust-host option (trustHost: true) so callback URLs are built from the forwarded host.

Read more about this in the documentation

Related questions

Still need help?

If this didn't answer your question, our team is one message away.

Contact support