Add https to a Localhost Express App to Prevent MITM Attacks

Share this video with your friends

Send Tweet

In this lesson, we'll learn how to add https (and remove http) support to the localhost version of our express application. By adding https support, we'll be able to prevent a MITM (in this case Charles Proxy) from reading our session id, mitigating the attack known as "session hijacking".