2018-10-12 15:37:13 -04:00
|
|
|
---
|
|
|
|
|
title: Disable DNS Prefetching with helmet.dnsPrefetchControl()
|
|
|
|
|
---
|
|
|
|
|
## Disable DNS Prefetching with helmet.dnsPrefetchControl()
|
|
|
|
|
|
2019-02-11 14:25:59 -06:00
|
|
|
### Hint
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-02-11 14:25:59 -06:00
|
|
|
- You want your `app` to `use` helmet's `dnsPrefetchControl()` method.
|
2018-10-12 15:37:13 -04:00
|
|
|
|
2019-02-11 14:25:59 -06:00
|
|
|
### Solution
|
|
|
|
|
|
|
|
|
|
- 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.
|