I am trying to create a middleware for Express.js to redirect all non-secure (port 80) traffic to the secured SSL port (443).
Unfortunately there is no information in an Exp
Since I was working on nginx, I had access to the header's x-forwarded-proto property so I could write a tiny middleware to redirect all traffic as described here: http://elias.kg/post/14971446990/force-ssl-with-express-js-on-heroku-nginx