#3985 - "X-Content-Type-Options: nosniff" header may be duplicated

Identifier #3985
Issue type Trivial issue (does not break functionality)
Title "X-Content-Type-Options: nosniff" header may be duplicated
Status Completed
Handling member Chris Graham
Version 10.0.28
Addon core
Description Composr sets this header, and we also recommend to set it in .htaccess - so it gets duplicated. Which results in a small excess of bandwidth, and an error on webhint.io.

We cannot detect if the webserver will set it, so this change adds a new _config.php option to disable it.

$SITE_INFO['no_nosniff_header'] = '1';

Steps to reproduce

Funded? No
Commits

Fixed MANTIS-3985 ("X-Content-Type-Options: nosniff" header may be duplicated) (ee69783b) · Commits · Composr ecosystem / Composr · GitLab

The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".

Rating

Unrated