instance method
policy_present?
Ruby on Rails 7.1.6
Since v5.2.8.1 PrivateSignature
policy_present?(headers)
No documentation comment.
Parameters
-
headersreq
Source
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 65
def policy_present?(headers)
headers[ActionDispatch::Constants::CONTENT_SECURITY_POLICY] ||
headers[ActionDispatch::Constants::CONTENT_SECURITY_POLICY_REPORT_ONLY]
end
Defined in actionpack/lib/action_dispatch/http/content_security_policy.rb line 65
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ContentSecurityPolicy::Middleware