Skip to content

Commit 8abde77

Browse files
authored
Merge pull request #12690 from peterkraume/bug-12689
Set Referrer-Policy also in addSecurityHeaders()
2 parents ee2cb46 + 79b8703 commit 8abde77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/legacy/response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public static function addSecurityHeaders() {
104104
header('X-Robots-Tag: none'); // https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
105105
header('X-Download-Options: noopen'); // https://msdn.microsoft.com/en-us/library/jj542450(v=vs.85).aspx
106106
header('X-Permitted-Cross-Domain-Policies: none'); // https://www.adobe.com/devnet/adobe-media-server/articles/cross-domain-xml-for-streaming.html
107+
header('Referrer-Policy: no-referrer'); // https://www.w3.org/TR/referrer-policy/
107108
}
108109
}
109110

0 commit comments

Comments
 (0)