UNPKG

ienoopen

Version:

Middleware to set `X-Download-Options` header for IE8 security

12 lines (11 loc) 339 B
"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;