class ActionDispatch::ContentSecurityPolicy::Middleware

def policy_present?(headers)

def policy_present?(headers)
  headers[ActionDispatch::Constants::CONTENT_SECURITY_POLICY] ||
    headers[ActionDispatch::Constants::CONTENT_SECURITY_POLICY_REPORT_ONLY]
end