instance method
plugin_types
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
plugin_types(*types)
Restricts the set of plugins that can be embedded:
policy.plugin_types "application/x-shockwave-flash"
Leave empty to allow all plugins:
policy.plugin_types
Parameters
-
typesrest
Source
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 221
def plugin_types(*types)
if types.first
@directives["plugin-types"] = types
else
@directives.delete("plugin-types")
end
end
Defined in actionpack/lib/action_dispatch/http/content_security_policy.rb line 221
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ContentSecurityPolicy