Summary

In this chapter, we've covered an extremely important topic, application security. Thanks to the hard work of the Node.js and Express communities, we've been able to tighten the security simply by adding a few bits of code here and there to configure security modules. We've even worked out how to prevent the system from being built, if it's using packages with known vulnerabilities.

Enabling HTTPS means our users have better assurance of security. The SSL certificate is a measure of authenticity that protects against man-in-the-middle security attacks, and the data is encrypted for transmission across the internet. With a little bit of work, we were able to set up a system to acquire, and continuously renew, free SSL certificates ...

Get Node.js Web Development - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.