1.5 KiB
1.5 KiB
id | challengeType | forumTopicId | localeTitle |
---|---|---|---|
587d8248367417b2b2512c3b | 2 | 301584 | 使用 helment.ieNoOpen() 防止 IE 打开不受信任的 HTML |
Description
Instructions
Tests
tests:
- text: 应正确加载 helmet.ieNoOpen() 中间件
testString: getUserInput => $.get(getUserInput('url') + '/_api/app-info').then(data => { assert.include(data.appStack, 'ienoopen'); assert.equal(data.headers['x-download-options'], 'noopen'); }, 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.
*/