ienoopen
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

X-Download-Options middleware

This middleware sets the X-Download-Options header to noopen to prevent Internet Explorer users from executing downloads in your site's context.

const ienoopen = require("ienoopen");
app.use(ienoopen());

Some web applications will serve untrusted HTML for download. By default, some versions of IE will allow you to open those HTML files in the context of your site, which means that an untrusted HTML page could start doing bad things in the context of your pages. For more, see this MSDN blog post.

This is pretty obscure, fixing a small bug on IE only. No real drawbacks other than performance/bandwidth of setting the headers, though.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.17,331latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.17,331
1.1.0100,310
1.0.024,937
0.1.0883

Package Sidebar

Install

npm i ienoopen

Weekly Downloads

133,461

Version

1.1.1

License

MIT

Unpacked Size

3.97 kB

Total Files

6

Last publish

Collaborators

  • evanhahn