Pages

Monday, July 4, 2016

Learning Meteor.js [Part 32]: Redirect HTTP traffic to HTTPS

It has been almost a month since I last worked with Meteor.js. I have been busy with another project and on vacation. As I get back into the rhythm, this is a short post about getting a meteor application to redirect users to use SSL.

Heroku offers free SSL support for all its default domains, so you can access the application on https://mylunchtime.herokuapp.com. A common use case is to automatically redirect clients that visit the site using regular HTTP protocol to HTTPS.

Meteor has a simple package called force-ssl that does just this. Just drop this in and it works with Heroku deployments perfectly.


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.