feat(proxy): [OCISDEV-342] set referrer-policy to no-referrer

Change the Referrer-Policy from 'strict-origin-when-cross-origin'
to 'no-referrer' to enhance user privacy and security.

Previously, the origin was sent on cross-origin requests. This change
completely removes the Referrer header from all outgoing requests,
preventing any potential leakage of browsing information to third parties.
This is a more robust approach to protecting user privacy.
This commit is contained in:
Lukas Hirt committed 2025-10-27 09:38:36 +01:00
1 parent fa17a3cb3a
commit f0b2693cd3
2 files changed
+12 -1

No files matched your search

@@ -0,0 +1,11 @@
Enhancement: Set Referrer-Policy to no-referrer
Change the Referrer-Policy from 'strict-origin-when-cross-origin'
to 'no-referrer' to enhance user privacy and security.
Previously, the origin was sent on cross-origin requests. This change
completely removes the Referrer header from all outgoing requests,
preventing any potential leakage of browsing information to third parties.
This is a more robust approach to protecting user privacy.
https://github.com/owncloud/ocis/pull/11722
+1 -1
View File
@@ -59,7 +59,7 @@ func Security(cspConfig *config.CSP) func(h http.Handler) http.Handler {
ContentTypeNosniff: true,
CustomFrameOptionsValue: "SAMEORIGIN",
FrameDeny: true,
ReferrerPolicy: "strict-origin-when-cross-origin",
ReferrerPolicy: "no-referrer",
STSSeconds: 315360000,
STSIncludeSubdomains: true,
STSPreload: true,