Method: ActionDispatch::ContentSecurityPolicy::Request#content_security_policy_nonce
- Defined in:
- actionpack/lib/action_dispatch/http/content_security_policy.rb
#content_security_policy_nonce ⇒ Object
112 113 114 115 116 117 118 119 120 |
# File 'actionpack/lib/action_dispatch/http/content_security_policy.rb', line 112 def content_security_policy_nonce if content_security_policy_nonce_generator if nonce = get_header(NONCE) nonce else set_header(NONCE, generate_content_security_policy_nonce) end end end |