method
sandbox
v6.1.7.7 -
Show latest stable
- Class:
ActionDispatch::ContentSecurityPolicy
sandbox(*values)public
No documentation available.
# 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