We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee6f5fb commit 47791cbCopy full SHA for 47791cb
1 file changed
src/server.ts
@@ -13,7 +13,9 @@ const serverDistFolder = dirname(fileURLToPath(import.meta.url));
13
const browserDistFolder = resolve(serverDistFolder, '../browser');
14
15
const app = express();
16
-const angularApp = new AngularNodeAppEngine();
+const angularApp = new AngularNodeAppEngine({
17
+ trustProxyHeaders: ['x-forwarded-for', 'x-forwarded-host', 'x-forwarded-proto', 'x-forwarded-prefix'],
18
+});
19
20
const isBot = (ua: string) => /bot|googlebot|crawler|spider|robot|crawling/i.test(ua);
21
0 commit comments