You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// redirect to HTTPS if on HTTP on Herokuapp.use(function(req,res,next){if(config.env=="production"){if(req.headers["x-forwarded-proto"]=="https"){next();}else{res.redirect(301,'https://'+req.hostname+req.url);}}else{next();}});
The text was updated successfully, but these errors were encountered:
This is how it is done with Express.js:
The text was updated successfully, but these errors were encountered: