1.7 KiB
1.7 KiB
id | challengeType | forumTopicId | title |
---|---|---|---|
587d8248367417b2b2512c3d | 2 | 301577 | 使用 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
/**
Backend challenges don't need solutions,
because they would need to be tested against a full working project.
Please check our contributing guidelines to learn more.
*/