In this recipe, we will use most of the middleware functions provided by Helmet to secure our ExpressJS web application against common attacks. Before you start, create a new package.json file with the following content:
{ "dependencies": { "body-parser": "1.18.2", "express": "4.16.3", "helmet": "3.12.0", "uuid": "3.2.1" } }
Then, install the dependencies by opening a Terminal and running:
npm install