trix
trix copied to clipboard
Read the csp meta tag nonce attribute and fall back to content
This PR allows Trix to support rails/rails#51729. This changes Trix to read the meta tag's nonce attribute first and fall back to the content attribute.
As described in rails/rails#51580 (comment) this makes it harder to extract the nonce value.
Similar to hotwired/turbo#1254