Skip to content

Commit 1f5cbe4

Browse files
authored
Merge pull request #11722 from owncloud/feat/no-referrer
feat(proxy): [OCISDEV-342] set referrer-policy to no-referrer
2 parents fa17a3c + f0b2693 commit 1f5cbe4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Enhancement: Set Referrer-Policy to no-referrer
2+
3+
Change the Referrer-Policy from 'strict-origin-when-cross-origin'
4+
to 'no-referrer' to enhance user privacy and security.
5+
6+
Previously, the origin was sent on cross-origin requests. This change
7+
completely removes the Referrer header from all outgoing requests,
8+
preventing any potential leakage of browsing information to third parties.
9+
This is a more robust approach to protecting user privacy.
10+
11+
https://github.com/owncloud/ocis/pull/11722

services/proxy/pkg/middleware/security.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func Security(cspConfig *config.CSP) func(h http.Handler) http.Handler {
5959
ContentTypeNosniff: true,
6060
CustomFrameOptionsValue: "SAMEORIGIN",
6161
FrameDeny: true,
62-
ReferrerPolicy: "strict-origin-when-cross-origin",
62+
ReferrerPolicy: "no-referrer",
6363
STSSeconds: 315360000,
6464
STSIncludeSubdomains: true,
6565
STSPreload: true,

0 commit comments

Comments
 (0)