Security upgrades
This commit is contained in:
11
node_modules/helmet/dist/middlewares/x-download-options/index.js
generated
vendored
Normal file
11
node_modules/helmet/dist/middlewares/x-download-options/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function xDownloadOptionsMiddleware(_req, res, next) {
|
||||
res.setHeader("X-Download-Options", "noopen");
|
||||
next();
|
||||
}
|
||||
function xDownloadOptions() {
|
||||
return xDownloadOptionsMiddleware;
|
||||
}
|
||||
module.exports = xDownloadOptions;
|
||||
exports.default = xDownloadOptions;
|
||||
Reference in New Issue
Block a user