search and replace ```\n< with ```\n\n< to ensure there's an empty line before closing tags
1.6 KiB
1.6 KiB
id, title, challengeType, videoUrl, localeTitle
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
587d8248367417b2b2512c3d | Disable DNS Prefetching with helmet.dnsPrefetchControl() | 2 | 使用helmet.dnsPrefetchControl()禁用DNS预取 |
Description
Instructions
Tests
tests:
- text: 应该正确安装helmet.dnsPrefetchControl()中间件
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
/section>