-
Notifications
You must be signed in to change notification settings - Fork 107
Add manual CSP nonce and sha-256 support #163
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
Conversation
=== Original Commits === Add ./vendor/* to .gitingore for local installs In-line intercom settings script Move code generation inside intercom_javascript helper function and in-line it Also remove extra </script> Add csp_sha256 method IN-LINE ALL THE CODE! Test csp_sha256 for default values
=== Original Commits === Re-add back the IntercomSettingsScriptTag id Update spec for checking for id="IntercomSettingsScriptTag" Use .to_s instead of .output Update spec and add testing for helper generated csp sha as well
this looks great! Could you check why CI is failing? |
bundle install is failing with the error |
works for me(tm) with boxen rvm and ruby 1.9.3:
Starting a build of 2.1.2 right now, not sure it will be much different though 💭 |
ruby 2.1.2 works as well:
|
🚢 |
After a bit more digging, it seems the builds are failing due to an outdated version of bundler for those two versions. |
Add manual CSP nonce and sha-256 support
This PR adds manual insertion of a CSP nonce and retrieve of CSP sha-256 source code hash.