Browse Source

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

tags/1.4.2
crazywoola 5 months ago
parent
commit
25be7c1ad5
No account linked to committer's email address
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      web/middleware.ts

+ 5
- 0
web/middleware.ts View File

contentSecurityPolicyHeaderValue, contentSecurityPolicyHeaderValue,
) )


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

return wrapResponseWithXFrameOptions(response, pathname) return wrapResponseWithXFrameOptions(response, pathname)
} }



Loading…
Cancel
Save