Instantly share code, notes, and snippets.

What would you like to do?
// Ensure all requests are https
if (env === 'production') {
// DO NOTE the trustProtoHeader should only be true for Heroku deployments
expressApp.use(enforce.HTTPS({ trustProtoHeader: config.reverseProxy }));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment