We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d69d0b8 commit 49b0316Copy full SHA for 49b0316
server/middleware/https.middleware.js
@@ -6,7 +6,7 @@
6
* @param {*} next
7
*/
8
module.exports = (req, res, next) => {
9
- if (req.header('x-forwarded-proto') !== 'https') {
+ if (req.header('x-forwarded-proto') === 'http') {
10
res.redirect(`https://${req.header('host')}${req.url}`)
11
} else {
12
next()
0 commit comments