diff --git a/src/server.ts b/src/server.ts index 305a15d32..7cb802f4c 100644 --- a/src/server.ts +++ b/src/server.ts @@ -13,7 +13,9 @@ const serverDistFolder = dirname(fileURLToPath(import.meta.url)); const browserDistFolder = resolve(serverDistFolder, '../browser'); const app = express(); -const angularApp = new AngularNodeAppEngine(); +const angularApp = new AngularNodeAppEngine({ + trustProxyHeaders: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-prefix'], +}); const isBot = (ua: string) => /bot|googlebot|crawler|spider|robot|crawling/i.test(ua);