Mercurial > rsstweet
diff config/initializers/content_security_policy.rb @ 214:2335107f35d0
Run rails update
author | nanaya <me@nanaya.pro> |
---|---|
date | Fri, 11 Dec 2020 03:47:39 +0900 |
parents | f67f3ad50270 |
children | ad6264cca788 |
line wrap: on
line diff
--- a/config/initializers/content_security_policy.rb Fri Dec 11 03:41:31 2020 +0900 +++ b/config/initializers/content_security_policy.rb Fri Dec 11 03:47:39 2020 +0900 @@ -19,6 +19,9 @@ # If you are using UJS then enable automatic nonce generation # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) } +# Set the nonce only to specific directives +# Rails.application.config.content_security_policy_nonce_directives = %w(script-src) + # Report CSP violations to a specified URI # For further information see the following documentation: # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only