Namespace
- MODULE ActionDispatch::ContentSecurityPolicy::Request
- CLASS ActionDispatch::ContentSecurityPolicy::Middleware
Methods
- B
- I
- N
- P
- R
- S
- U
Attributes
[R] | directives |
Class Public methods
new() Link
Instance Public methods
block_all_mixed_content(enabled = true) Link
build(context = nil, nonce = nil, nonce_directives = nil) Link
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 219 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