bullet
bullet copied to clipboard
Nonces are not applied to inline CSS styles
In my Rails application I have both style and script tags setup to require nonces. When bullet loads with a CSP required it properly handles script tags but does not add a nonce to style tags. This causes errors to show up on the console but causes no errors to actually show up on the page.
Relevant parts of the content security policy:
config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
config.content_security_policy_nonce_directives = %w[script-src style-src]