Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[web] Fix referrer policy

Manav Rathi7dcfe12d1d69
diff --git a/web/apps/auth/public/_headers b/web/apps/auth/public/_headers
index 72dc5bb5ce..13dd2408e7 100644
--- a/web/apps/auth/public/_headers
+++ b/web/apps/auth/public/_headers
@@ -5,6 +5,5 @@
X-Download-Options: noopen
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
- Referrer-Policy: same-origin
Content-Security-Policy-Report-Only: default-src 'self'; img-src 'self' blob: data:; media-src 'self' blob:; style-src 'self' 'unsafe-inline'; font-src 'self'; script-src 'self' 'unsafe-eval' blob:; manifest-src 'self'; child-src 'self' blob:; object-src 'none'; connect-src 'self' https://*.ente.io data: blob: https://ente-prod-eu.s3.eu-central-003.backblazeb2.com https://ente-prod-v3.s3.eu-central-2.wasabisys.com/ ; base-uri 'self'; frame-ancestors 'none'; form-action 'none'; report-uri https://csp-reporter.ente.io; report-to https://csp-reporter.ente.io;
diff --git a/web/apps/photos/public/_headers b/web/apps/photos/public/_headers
index 72dc5bb5ce..13dd2408e7 100644
--- a/web/apps/photos/public/_headers
+++ b/web/apps/photos/public/_headers
@@ -5,6 +5,5 @@
X-Download-Options: noopen
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
- Referrer-Policy: same-origin
Content-Security-Policy-Report-Only: default-src 'self'; img-src 'self' blob: data:; media-src 'self' blob:; style-src 'self' 'unsafe-inline'; font-src 'self'; script-src 'self' 'unsafe-eval' blob:; manifest-src 'self'; child-src 'self' blob:; object-src 'none'; connect-src 'self' https://*.ente.io data: blob: https://ente-prod-eu.s3.eu-central-003.backblazeb2.com https://ente-prod-v3.s3.eu-central-2.wasabisys.com/ ; base-uri 'self'; frame-ancestors 'none'; form-action 'none'; report-uri https://csp-reporter.ente.io; report-to https://csp-reporter.ente.io;
diff --git a/web/packages/base/components/Head.tsx b/web/packages/base/components/Head.tsx
index d756a9b09b..0373bd3aea 100644
--- a/web/packages/base/components/Head.tsx
+++ b/web/packages/base/components/Head.tsx
@@ -24,6 +24,7 @@ export const CustomHead: React.FC<CustomHeadProps> = ({ title }) => {
name="viewport"
content="width=device-width, initial-scale=1"
/>
+ <meta name="referrer" content="strict-origin-when-cross-origin" />
</Head>
);
};