UNPKG
x-xss-protection
Version:
latest (2.0.0)
2.0.0
1.3.0
1.2.0
1.1.0
1.0.0
0.2.0
0.1.2
0.1.1
0.1.0
Middleware to disable the X-XSS-Protection header
helmetjs.github.io
helmetjs/helmet
x-xss-protection
/
index.js
11 lines
(10 loc)
•
309 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
xXssProtection
(
) {
return
function
xXssProtectionMiddleware
(
_req, res, next
) { res.
setHeader
(
"X-XSS-Protection"
,
"0"
);
next
(); }; }
module
.
exports
= xXssProtection;
exports
.
default
= xXssProtection;