- Issue created by @gapple
CSP parses library definitions in order to populate script-src
and style-src
, and creates a single default set that's applied to all responses. This is a benefit to site builders who are more likely to be able to enable the module and gain improved protection from default configuration with lower risk of blocking expected behaviour. CSP may also allow sources for additional directives to be added to library definitions in the future (e.g font-src
for CSS libraries that load remote fonts).
There are a few issues with some cases though:
Some or all features:
Implementing the additional configuration options in a new object (csp.libraries
?) would keep the main csp.config
object cleaner.
- A new tab in the CSP configuration
- The auto-sources sections on the main config changed from a disabled textarea to just text with a note/link to the other configuration tab?
- A new configuration object
Active
2.0
Code