enzostvs HF Staff commited on
Commit
968ad5b
·
1 Parent(s): 272e819

remove headers

Browse files
Files changed (1) hide show
  1. middleware.ts +0 -5
middleware.ts CHANGED
@@ -8,11 +8,6 @@ export function middleware(request: NextRequest) {
8
  // Create response with headers
9
  const response = NextResponse.next({ headers });
10
 
11
- // Add SEO and security headers
12
- response.headers.set('X-Frame-Options', 'SAMEORIGIN');
13
- response.headers.set('X-Content-Type-Options', 'nosniff');
14
- response.headers.set('Referrer-Policy', 'strict-origin-when-cross-origin');
15
-
16
  // Add cache control for better performance
17
  if (request.nextUrl.pathname.startsWith('/_next/static')) {
18
  response.headers.set('Cache-Control', 'public, max-age=31536000, immutable');
 
8
  // Create response with headers
9
  const response = NextResponse.next({ headers });
10
 
 
 
 
 
 
11
  // Add cache control for better performance
12
  if (request.nextUrl.pathname.startsWith('/_next/static')) {
13
  response.headers.set('Cache-Control', 'public, max-age=31536000, immutable');