See the System - HTTP Headers plugin.
It is not possible to disable the X-Content-Type-Options functionality on an Apache server, without changing the .htaccess file too.
This is somewhat confusing.
PHP Version 7.3.7
Web Server Apache/2.4.39 (Win64) OpenSSL/1.1.1c PHP/7.3.7
WebServer to PHP Interface apache2handler
Joomla! Version Joomla! 4.0.0-alpha11-dev Development [ Amani ] 29-June-2019 11:27 GMT
Because the htaccess file contains namely the following instruction:
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
</IfModule>
Labels |
Added:
?
|
Labels |
Added:
J4 Issue
|
Title |
|
Status | New | ⇒ | Discussion |
Yes this is expected, in the coming days I'm preparing an PR to remove that option in the plugin. It is already on my list. :)
This was set by the JSST in response...
What in case if you do NOT use the .htaccess or web.config file (the X-Content-Type-Options functionality is then not set, as far as I can oversee) and you remove that option?
What in case if you do NOT use the .htaccess or web.config file (the X-Content-Type-Options functionality is then not set, as far as I can oversee) and you remove that option?
What would be your suggestion to fix this? We could force this setting from the plugin but what would happen when they disable the plugin? Every Backed gets a notice and new installs have this header in the default htaccess. Any new installation of 4.0 with htaccess support enabled will have that header set.
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-07-31 18:06:37 |
Closed_By | ⇒ | franz-wohlkoenig |
What would be your suggestion to fix this? We could force this setting from the plugin ....
Thanks, very clear explanation.
[EDIT] But why not center all the header functionality in the plugin? It must still be possible to remove the code from the htaccess / web.config? Unless the safety is reduced!
Agree as you mention this is the line in the htaccess. This was set by the JSST in response to this issue: https://developer.joomla.org/security-centre/766-20190202-core-browserside-mime-type-sniffing-causes-xss-attack-vectors.html
As the option in the plugin was there before it might make sense to remove that option from the plugin.