X-Download-Options (X-Download-Options)
The Importance of X-Download-Options
In older versions of Internet Explorer, when a user downloaded a file and chose 'Open' instead of 'Save', the file could execute in the security context of the originating site. This meant a malicious file served from your domain could access your cookies and make requests as the authenticated user.
X-Download-Options: noopen removes the 'Open' option from IE's download dialog, forcing users to save first. This breaks the security context association and prevents the attack. While this is primarily an IE-specific issue, the header is harmless for other browsers.
With IE nearing complete retirement, this header is decreasing in relevance. However, enterprise environments still use IE, and the header is trivial to implement. Security scanners still check for it, and including it satisfies compliance requirements at zero cost.
How to Test for X-Download-Options
A security audit checks for the X-Download-Options header. Set it to "noopen" on all responses, especially those that serve downloadable files. This is a single-line server configuration change.
Run a Security Audit