Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nonces are not applied to inline CSS styles #652

Open
rbclark opened this issue Mar 23, 2023 · 0 comments
Open

Nonces are not applied to inline CSS styles #652

rbclark opened this issue Mar 23, 2023 · 0 comments

Comments

@rbclark
Copy link

rbclark commented Mar 23, 2023

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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant