fix(security): disable legacy XSS browser filter

This commit is contained in:
2026-11-09 15:56:30 +00:00
parent ff84e9ea0f
commit 63c56da143
3 changed files with 102 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ export function middleware(request) {
);
// XSS protection (legacy)
response.headers.set("X-XSS-Protection", "1; mode=block");
response.headers.set("X-XSS-Protection", "0");
// Prevent MIME type sniffing
response.headers.set("X-Content-Type-Options", "nosniff");