1.4 KiB
1.4 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
587d8247367417b2b2512c37 | Hide Potentially Dangerous Information Using helmet.hidePoweredBy() | 2 | 使用helmet.hidePoweredBy()隐藏潜在的危险信息 |
Description
Instructions
Tests
tests:
- text: helmet.hidePoweredBy()中间件应正确安装
testString: 'getUserInput => $.get(getUserInput("url") + "/_api/app-info").then(data => { assert.include(data.appStack, "hidePoweredBy"); assert.notEqual(data.headers["x-powered-by"], "Express")}, xhr => { throw new Error(xhr.responseText); })'
Challenge Seed
Solution
// solution required