UNPKG
lusca
Version:
latest (1.7.0)
1.7.0
1.6.1
1.6.0
1.5.2
1.5.1
1.5.0
1.5.0--alpha
1.4.1
1.4.0
1.3.0
1.2.0
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.1.2
0.1.1
Application security for express.
github.com/krakenjs/lusca
krakenjs/lusca
lusca
/
lib
/
nosniff.js
13 lines
(11 loc)
•
302 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
/** * X-Content-Type-Options * https://blogs.msdn.microsoft.com/ie/2008/09/02/ie8-security-part-vi-beta-2-update/ */
module
.
exports
=
function
nosniff
(
) {
return
function
nosniff
(
req, res, next
) { res.
header
(
'x-content-type-options'
,
'nosniff'
);
next
(); }; };