freeCodeCamp Challenge Guide: Disable DNS Prefetching with helmet.dnsPrefetchControl()

Disable DNS Prefetching with helmet.dnsPrefetchControl()


Hints

Hint 1

You want your app to use helmet’s dnsPrefetchControl() method.


Solutionss

Solution 1 (Click to Show/Hide)

In the myApp.js file add app.use(helmet.dnsPrefetchControl()); under the eighth instructions.

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

2 Likes