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

pull/20597/head
crazywoola 8 months ago committed by GitHub
parent 888cd86afd
commit 25be7c1ad5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save