Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add security headers for social app

Anand Baburajane505f8fe432d
diff --git a/web/apps/social/public/_headers b/web/apps/social/public/_headers
new file mode 100644
index 0000000000..5be2c910c7
--- /dev/null
+++ b/web/apps/social/public/_headers
@@ -0,0 +1,10 @@
+/*
+ Cache-Control: no-store, must-revalidate
+ Strict-Transport-Security: max-age=63072000
+ X-Content-Type-Options: nosniff
+ X-Download-Options: noopen
+ X-Frame-Options: deny
+ X-XSS-Protection: 1; mode=block
+ Referrer-Policy: no-referrer
+ Reporting-Endpoints: csp-endpoint="https://csp-reporter.ente.io"
+ Content-Security-Policy-Report-Only: default-src 'self'; img-src 'self' blob: data:; media-src 'self' blob: data:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval' blob:; worker-src 'self' blob:; manifest-src 'self'; child-src 'self' blob:; object-src 'none'; connect-src 'self' https://*.ente.io data: blob: https://*.s3.eu-central-003.backblazeb2.com https://*.s3.eu-central-2.wasabisys.com; base-uri 'self'; frame-ancestors 'none'; form-action 'none'; report-uri https://csp-reporter.ente.io; report-to csp-endpoint;