instance method
sandbox
Ruby on Rails 6.1.7.10
Since v5.2.8.1Signature
sandbox(*values)
No documentation comment.
Parameters
-
valuesrest
Source
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 195
def sandbox(*values)
if values.empty?
@directives["sandbox"] = true
elsif values.first
@directives["sandbox"] = values
else
@directives.delete("sandbox")
end
end
Defined in actionpack/lib/action_dispatch/http/content_security_policy.rb line 195
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ContentSecurityPolicy