Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

remove x-xxs-protection; add X-Content-Type-Options

Blue Mousefda11ffeff6c
diff --git a/backend/apps/cloud/src/main.ts b/backend/apps/cloud/src/main.ts
index a9b9ff71b..4b0d25093 100644
--- a/backend/apps/cloud/src/main.ts
+++ b/backend/apps/cloud/src/main.ts
@@ -45,7 +45,7 @@ async function bootstrap() {
res.header('Referrer-Policy', 'strict-origin-when-cross-origin')
res.header('X-Frame-Options', 'DENY')
res.header('X-Powered-By', 'Mountain Dew')
- res.header('X-XSS-Protection', '1; mode=block')
+ res.header('X-Content-Type-Options', 'nosniff')
res.header('Access-Control-Allow-Origin', '*')
res.header('Access-Control-Allow-Methods', 'GET,POST,PUT,DELETE,PATCH')
res.header('Access-Control-Allow-Headers', 'Authorization, *')
diff --git a/backend/apps/community/src/main.ts b/backend/apps/community/src/main.ts
index 718999f67..3975a7649 100644
--- a/backend/apps/community/src/main.ts
+++ b/backend/apps/community/src/main.ts
@@ -37,7 +37,7 @@ async function bootstrap() {
res.header('Referrer-Policy', 'strict-origin-when-cross-origin')
res.header('X-Frame-Options', 'DENY')
res.header('X-Powered-By', 'Mountain Dew')
- res.header('X-XSS-Protection', '1; mode=block')
+ res.header('X-Content-Type-Options', 'nosniff')
res.header('Access-Control-Allow-Origin', '*')
res.header('Access-Control-Allow-Methods', 'GET,POST,PUT,DELETE,PATCH')
res.header('Access-Control-Allow-Headers', 'Authorization, *')
diff --git a/web/app/root.tsx b/web/app/root.tsx
index 4f2047264..e20b140f5 100644
--- a/web/app/root.tsx
+++ b/web/app/root.tsx
@@ -70,7 +70,6 @@ export const headers: HeadersFunction = () => ({
'Permissions-Policy': 'interest-cohort=()',
'Referrer-Policy': 'strict-origin-when-cross-origin',
'X-Powered-By': 'Mountain Dew',
- 'X-XSS-Protection': '1; mode=block',
// Theme detection headers (browser hints)
'Accept-CH': 'Sec-CH-Prefers-Color-Scheme',
Vary: 'Sec-CH-Prefers-Color-Scheme',