1.5 KiB
1.5 KiB
id | title | challengeType |
---|---|---|
587d8248367417b2b2512c3d | Disable DNS Prefetching with helmet.dnsPrefetchControl() | 2 |
Description
Instructions
Tests
tests:
- text: helmet.dnsPrefetchControl() middleware should be mounted correctly
testString: getUserInput => $.get(getUserInput('url') + '/_api/app-info').then(data => { assert.include(data.appStack, 'dnsPrefetchControl'); assert.equal(data.headers['x-dns-prefetch-control'], 'off'); }, xhr => { throw new Error(xhr.responseText); })
Challenge Seed
Solution
// solution required