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

Add CSP nonce to injected scripts and styles #296

Merged
merged 1 commit into from
Aug 19, 2020

Conversation

mikelkew
Copy link

As raised in #242, the current implementation fails if using a strict CSP. This allows the nonce generated by Rails 6+ to be added to the scripts and styles inserted into the DOM, and should be a non-breaking change.

Resolves #242.

The current implementation fails if using a strict CSP. This
allows the nonce generated by Rails 6+ to be added to the scripts
and styles inserted into the DOM.
@gsamokovarov
Copy link
Collaborator

Thanks!

@gsamokovarov gsamokovarov merged commit 28dfbc4 into rails:master Aug 19, 2020
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

Successfully merging this pull request may close these issues.

Strict Content Security Policy breaks web-console
2 participants