At GitHub, we set the default-src CSP attribute to none. This provides the strictest possible CSP as it'll thus only allow CSP directives that the user explicitly has allowlisted.
It would be desirable to set this default in secure_headers as well:
|
default_src: %w('self' https:), |
This would be a breaking change, so if this is desirable, this would fit well in with #480