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.Custom and 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