mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
5 lines
162 B
CoffeeScript
5 lines
162 B
CoffeeScript
|
# Content-Security-Policy nonce for inline scripts
|
||
|
cspNonce = Rails.cspNonce = ->
|
||
|
meta = document.querySelector('meta[name=csp-nonce]')
|
||
|
meta and meta.content
|