summaryrefslogtreecommitdiffstats
path: root/lib/private/response.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-01-13 10:33:58 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-01-13 10:33:58 +0100
commitb1ee51f25577e4c407f525c740692d57b928b30b (patch)
tree18f89f1b74093d48725c6a83ab3469a8795325de /lib/private/response.php
parent5565b19382d08df427fbdcf806c2a408a11f7207 (diff)
parent4d0dcd3c53a4c8c9944bc23d41de71593c3bd5d6 (diff)
downloadnextcloud-server-b1ee51f25577e4c407f525c740692d57b928b30b.tar.gz
nextcloud-server-b1ee51f25577e4c407f525c740692d57b928b30b.zip
Merge pull request #21630 from owncloud/add-some-security-headers-as-hardening
Add X-Download-Options and X-Permitted-Cross-Domain-Policies
Diffstat (limited to 'lib/private/response.php')
-rw-r--r--lib/private/response.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/response.php b/lib/private/response.php
index c839bd3abea..5c7eb9b52d5 100644
--- a/lib/private/response.php
+++ b/lib/private/response.php
@@ -260,6 +260,8 @@ class OC_Response {
header('X-Content-Type-Options: nosniff'); // Disable sniffing the content type for IE
header('X-Frame-Options: Sameorigin'); // Disallow iFraming from other domains
header('X-Robots-Tag: none'); // https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
+ header('X-Download-Options: noopen'); // https://msdn.microsoft.com/en-us/library/jj542450(v=vs.85).aspx
+ header('X-Permitted-Cross-Domain-Policies: none'); // https://www.adobe.com/devnet/adobe-media-server/articles/cross-domain-xml-for-streaming.html
}
}