I am using the following codes to forward any http connection to https in my Express web app:
app.use((req, res, next) => { if (process.env.NODE_ENV ===