Merge pull request #12737 from nextcloud/backport/12690/stable15

[stable15] Set Referrer-Policy also in addSecurityHeaders()
This commit is contained in:
Roeland Jago Douma 2018-11-29 19:36:15 +01:00 committed by GitHub
commit ca9666fadb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,7 @@ class OC_Response {
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
header('Referrer-Policy: no-referrer'); // https://www.w3.org/TR/referrer-policy/
}
}