Last active
July 25, 2016 14:52
-
-
Save dbalduini/da9eef9247f4b01334851531bb0ed507 to your computer and use it in GitHub Desktop.
Test web site for Content Nniffing security vulnerability
This file contains hidden or 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
Router.route('/sniff', function() { | |
var response = this.response; | |
response.writeHead(200, { | |
'Content-Type' : 'text/plain', | |
'X-Content-Type-Options' : 'nosniff' // comment me to redirect the browser | |
}); | |
response.end('<meta http-equiv="refresh" content="0; url=http://example.com/" />'); | |
}, { | |
where : 'server' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment