We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e94be5 commit 685a82eCopy full SHA for 685a82e
bin/ember-fastboot
@@ -37,7 +37,12 @@ const httpServer = new ExpressHTTPServer(serverOptions);
37
38
const app = httpServer.app;
39
40
-app.use(enforce.HTTPS({ trustProtoHeader: true }));
+app.use(
41
+ enforce.HTTPS({
42
+ trustProtoHeader: true,
43
+ trustXForwardedHostHeader: true
44
+ })
45
+);
46
47
app.use(
48
express.static(distPath, {
@@ -52,6 +57,8 @@ app.use(
52
57
53
58
/** We rewrite the 307 location header into a relativeURL so that our special setup is handled */
54
59
app.use(function(req, res, next) {
60
+ console.log(req.headers['x-forwarded-host'], req.headers.host);
61
+
55
62
const originalSendFn = res.send;
56
63
64
res.send = function() {
0 commit comments