teddit/node_modules/helmet/dist/middlewares/x-xss-protection/index.js

11 lines
309 B
JavaScript
Raw Normal View History

2020-11-17 21:44:32 +01:00
"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;