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

This commit is contained in:
crazywoola 2025-06-03 17:43:48 +08:00 committed by GitHub
parent 888cd86afd
commit 25be7c1ad5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,6 +56,11 @@ export function middleware(request: NextRequest) {
contentSecurityPolicyHeaderValue,
)
response.headers.set(
'Content-Security-Policy',
contentSecurityPolicyHeaderValue,
)
return wrapResponseWithXFrameOptions(response, pathname)
}