Created
February 17, 2016 04:32
-
-
Save deepal/979a5566f1b686773db8 to your computer and use it in GitHub Desktop.
nodesec-helmet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var helmet = require('helmet'); | |
app.use(helmet.hidePoweredBy({setTo: 'DummyServer 1.0'})); //change value of X-Powered-By header to given value | |
app.use(helmet.noCache({noEtag: true})); //set Cache-Control header | |
app.use(helmet.noSniff()); // set X-Content-Type-Options header | |
app.use(helmet.frameguard()); // set X-Frame-Options header | |
app.use(helmet.xssFilter()); // set X-XSS-Protection header |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment