instance method
sandbox
Ruby on Rails 6.0.6
Since v5.2.8.1Signature
sandbox(*values)
No documentation comment.
Parameters
-
valuesrest
Source
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 190
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 190
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ContentSecurityPolicy