instance method
apply_mapping
Ruby on Rails 7.1.6
Since v5.2.8.1 PrivateSignature
apply_mapping(source)
No documentation comment.
Parameters
-
sourcereq
Source
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 313
def apply_mapping(source)
MAPPINGS.fetch(source) do
raise ArgumentError, "Unknown content security policy source mapping: #{source.inspect}"
end
end
Defined in actionpack/lib/action_dispatch/http/content_security_policy.rb line 313
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ContentSecurityPolicy