Explorar el Código

Revert "♻️ refactor(middleware): remove duplicate CSP header assignment" (#20592)

tags/1.4.2
crazywoola hace 5 meses
padre
commit
25be7c1ad5
No account linked to committer's email address
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5
    0
      web/middleware.ts

+ 5
- 0
web/middleware.ts Ver fichero

@@ -56,6 +56,11 @@ export function middleware(request: NextRequest) {
contentSecurityPolicyHeaderValue,
)

response.headers.set(
'Content-Security-Policy',
contentSecurityPolicyHeaderValue,
)

return wrapResponseWithXFrameOptions(response, pathname)
}


Cargando…
Cancelar
Guardar