You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For compatibility reasons (e.g.: legacy servers that serve all files
as `text/plain`), IE 8+ has a MIME-sniffing feature that will attempt
to determine the content-type for each downloaded resource.
In some cases, IE may report a MIME type different than the type speci-
fied by the web server. For instance, if IE finds HTML content in a file
delivered with the HTTP response header `Content-Type: text/plain`, it
determines that the content should be rendered as HTML.
Unfortunately, MIME-sniffing can also lead to security problems for
servers hosting untrusted content.
Fortunately, IE provides web apps with the ability to opt-out of
MIME-sniffing by sending the `X-Content-Type-Options` response header
with the value `nosniff`. This will prevent IE from MIME-sniffing a
response away from the declared content-type.
See also:
* http://msdn.microsoft.com/en-us/library/ie/gg622941
* http://blogs.msdn.com/b/ie/archive/2008/09/02/ie8-security-part-vi-beta-2-update.aspx
Beside IE 8+, this feature has been implemented in Chrome, and may soon
come to Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=471020).
Ref: #8.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
### HEAD
2
2
3
-
* Add configurations for cursor images (`.cur`).
3
+
* Add config for reducing MIME type security risks ([#8](https://github.com/h5bp/server-configs-apache/issues/8)).
4
+
* Add configs for cursor images (`.cur`).
4
5
* Fix backup and source file blocking for Apache v2.3+ ([#5](https://github.com/h5bp/server-configs-apache/issues/5)).
5
6
* Remove filename extension to content type mappings that are already provided by Apache v2.2.0+ ([#4](https://github.com/h5bp/server-configs-apache/issues/4)).
0 commit comments