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 nonce to script tag #51

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

olivier-thatch
Copy link
Contributor

Add nonce: true to javascript_include_tag directive.

When using a Content Security Policy like script-src: strict-dynamic, Audits1984's script will fail to load unless a nonce is used.

This does nothing when the app does not have a CSP and so should be safe for everyone.

@jorgemanrubia
Copy link
Member

Thanks a lot @olivier-thatch 🙏

@jorgemanrubia jorgemanrubia merged commit 1b361af into basecamp:master Dec 24, 2023
@olivier-thatch olivier-thatch deleted the olivier-nonce branch December 24, 2023 11:43
@olivier-thatch
Copy link
Contributor Author

@jorgemanrubia No rush at all, but if you could release a new version with this fix, that'd be great :) Merry xmas! 🎄

@jorgemanrubia
Copy link
Member

Released 0.1.5 with this one. Thanks!

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.

2 participants