method
policy_present?
v7.1.3.2 -
Show latest stable
- Class:
ActionDispatch::ContentSecurityPolicy::Middleware
policy_present?(headers)private
No documentation available.
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 62
def policy_present?(headers)
headers[ActionDispatch::Constants::CONTENT_SECURITY_POLICY] ||
headers[ActionDispatch::Constants::CONTENT_SECURITY_POLICY_REPORT_ONLY]
end