Problem/Motivation
Follow-up from #462950: Mitigate the security risks that come from IE, Chrome and other browsers trying to sniff the mime type
Follow-up from #462950: Mitigate the security risks that come from IE, Chrome and other browsers trying to sniff the mime type
Comments
Comment #2
catchComment #3
catchComment #4
roball commentedMy proposal was to remove the
alwayscondition from Apache'sHeaderdirective, ending up inHeader set X-Content-Type-Options nosniffOtherwise, I get the response header line
X-Content-Type-Options: nosniff, nosniffComment #5
pwolanin commentedI never see the
X-Content-Type-Options: nosniff, nosniffThe D8 core test would be failing if it was happening in the test scenario.
Are you getting that with a contrib module or just stock Drupal core?
Comment #6
neograph734Closely reading the discussion in the other thread leads to #44, where is stated the seckit module implements function _seckit_x_content_type_options that adds this header to Drupal as well.
The goal of the module:
So since this is in core now, I believe it should be removed from seckit (as it no longer required) and this issue is done.
Comment #11
wim leersThis only happens if you are using Apache with
mod_headersinstalled.More details at #2854817: Duplicate X-Content-Type-Options headers both with the value nosniff. Marking this as a duplicate.