instance method
policy_present?
Ruby on Rails 8.1.2
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 67
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 67
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ContentSecurityPolicy::Middleware