rails_live_reload
rails_live_reload copied to clipboard
Support for nonce CSP
Currently rails_live_reload
is not usable with decent CSP directive (no unsafe-inline
) and the content is blocked
This patch use the native rails CSP nonce to whitelist the injected script
See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce https://api.rubyonrails.org/classes/ActionDispatch/ContentSecurityPolicy/Request.html#method-i-content_security_policy_nonce_generator