Skip to content

Commit

Permalink
remove x-xxs-protection; add X-Content-Type-Options
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaumaus committed Jan 31, 2025
1 parent 13e3a02 commit fda11ff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/apps/cloud/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, *')
Expand Down
2 changes: 1 addition & 1 deletion backend/apps/community/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, *')
Expand Down
1 change: 0 additions & 1 deletion web/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit fda11ff

Please sign in to comment.