Method: ActionDispatch::ContentSecurityPolicy#build
- Defined in:
- lib/action_dispatch/http/content_security_policy.rb
#build(context = nil, nonce = nil, nonce_directives = nil) ⇒ Object
296 297 298 299 |
# File 'lib/action_dispatch/http/content_security_policy.rb', line 296 def build(context = nil, nonce = nil, nonce_directives = nil) nonce_directives = DEFAULT_NONCE_DIRECTIVES if nonce_directives.nil? build_directives(context, nonce, nonce_directives).compact.join("; ") end |