1.6 KiB
1.6 KiB
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