We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa571f5 commit 7b4bf07Copy full SHA for 7b4bf07
server.js
@@ -8,7 +8,6 @@ app.use('/', express.static(__dirname));
8
// use HTTPS(true) in case you are behind a load balancer (e.g. Heroku)
9
if (process.env.NODE_ENV === 'production') {
10
console.log('redirecting to ssl');
11
- app.use(enforce.HTTPS());
12
app.use(enforce.HTTPS({ trustProtoHeader: true }))
13
}
14
0 commit comments