diff options
author | MichaIng <micha@dietpi.com> | 2022-03-19 18:17:46 +0100 |
---|---|---|
committer | MichaIng <micha@dietpi.com> | 2022-03-19 18:17:46 +0100 |
commit | ea0e45d81e6963dab8c89981538f9d5fe2d51472 (patch) | |
tree | 7b1ed6175c13b608c34330ac21826ad82b591762 /lib/private | |
parent | 40b0ca56f77a994e8a094643ea96d53e7e8d24bc (diff) | |
download | nextcloud-server-ea0e45d81e6963dab8c89981538f9d5fe2d51472.tar.gz nextcloud-server-ea0e45d81e6963dab8c89981538f9d5fe2d51472.zip |
Remove legacy Internet Explorer headers
X-UA-Compatible and X-Download-Options headers are interpreted or relevant for Internet Explorer only. With the deprecation of Internet Explorer support in Nextcloud 20 and planned support removal already in Nextcloud 22, these became obsolete and are hereby removed, including their removal from setup checks.
Signed-off-by: MichaIng <micha@dietpi.com>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/legacy/OC_Response.php | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Response.php b/lib/private/legacy/OC_Response.php index 6cfd53d2651..e4525fe9e10 100644 --- a/lib/private/legacy/OC_Response.php +++ b/lib/private/legacy/OC_Response.php @@ -97,7 +97,6 @@ class OC_Response { if (getenv('modHeadersAvailable') !== 'true') { header('Referrer-Policy: no-referrer'); // https://www.w3.org/TR/referrer-policy/ header('X-Content-Type-Options: nosniff'); // Disable sniffing the content type for IE - header('X-Download-Options: noopen'); // https://msdn.microsoft.com/en-us/library/jj542450(v=vs.85).aspx header('X-Frame-Options: SAMEORIGIN'); // Disallow iFraming from other domains header('X-Permitted-Cross-Domain-Policies: none'); // https://www.adobe.com/devnet/adobe-media-server/articles/cross-domain-xml-for-streaming.html header('X-Robots-Tag: none'); // https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag |