1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Use X-Forwarded-Host header (#48866)

This commit is contained in:
Kevin Heis
2024-01-25 11:24:59 -08:00
committed by GitHub
parent cca15d76c8
commit 145f4baa45

View File

@@ -266,7 +266,7 @@ export const getMainContext = async (req: any, res: any): Promise<MainContextT>
featureFlags: {},
nonEnterpriseDefaultVersion: req.context.nonEnterpriseDefaultVersion,
status: res.statusCode,
fullUrl: req.protocol + '://' + req.get('host') + req.originalUrl,
fullUrl: req.protocol + '://' + req.hostname + req.originalUrl, // does not include port for localhost
}
if (req.context.currentLayoutName) {