freeCodeCamp Challenge Guide: Mitigate the Risk of Cross Site Scripting (XSS) Attacks with helmet.xssFilter()

Mitigate the Risk of Cross Site Scripting (XSS) Attacks with helmet.xssFilter()


Hints

Hint 1

You want to use helmet’s xssFilter() method on each request.


Solutions

Solution 1 (Click to Show/Hide)

In the myApp.js file, add app.use(helmet.xssFilter({})); under the fourth instruction.

Note: Be sure to submit the link to the live demo of your project.