zio-http
zio-http copied to clipboard
support for multiple Content-Security-Policy directives via typed headers
Is your feature request related to a problem? Please describe.
The current implementation of the ContentSecurityPolicy header only supports a single directive.
This header typically includes multiple directives.
Describe the solution you'd like I'd like for the CSP header to support multiple directives.
Describe alternatives you've considered There are currently two workarounds;
- Using
Header.Customand providing the full CSP as the value - Providing multiple CSP headers, each containing a single directive; however, this is tricky and comes with gotchas
Additional context Mozilla CSP Quick Reference Guide