check for forward-host again

This commit is contained in:
Max Peintner
2025-02-10 17:45:53 +01:00
parent 0779f0b807
commit cc356d868e

View File

@@ -71,7 +71,7 @@ export function getServiceUrlFromHeaders(headers: ReadonlyHeaders): {
} { } {
let instanceUrl; let instanceUrl;
const forwardedHost = headers.get("host"); const forwardedHost = headers.get("x-zitadel-forward-host");
// use the forwarded host if available (multitenant), otherwise fall back to the host of the deployment itself // use the forwarded host if available (multitenant), otherwise fall back to the host of the deployment itself
if (forwardedHost) { if (forwardedHost) {
instanceUrl = forwardedHost; instanceUrl = forwardedHost;