Files
HardHat/docs/IENoOpen.md
Tommy Parnell 3978cfc694 add docs
2017-06-17 17:20:36 -04:00

528 B

Prevent IE from opening websites in the context of your site

Attack

In old versions of IE, IE would open html files in the context of your site. Lets say you uploaded a html file as your image for your profile picture in a social media site. Old versions of IE would actually render the html out!

The Header

The X-Download-Options header can be set to noopen.

Code


public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
    app.UseIENoOpen();
}