diff --git a/mod/utils/reqHost.js b/mod/utils/reqHost.js index 34e465333b..5415b53650 100644 --- a/mod/utils/reqHost.js +++ b/mod/utils/reqHost.js @@ -9,7 +9,7 @@ module.exports = req => { host = `http://${process.env.ALIAS||req.headers.host}${process.env.DIR}` } else if (req.headers.host) { - host = `http://${process.env.ALIAS||req.headers.host}${process.env.DIR}` + host = `https://${process.env.ALIAS||req.headers.host}${process.env.DIR}` } else if (req.headers.referer) { host = new URL(req.headers.referer).origin