instance method
header_name
Ruby on Rails 7.1.6
Since v5.2.8.1 PrivateSignature
header_name(request)
No documentation comment.
Parameters
-
requestreq
Source
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 57
def header_name(request)
if request.content_security_policy_report_only
ActionDispatch::Constants::CONTENT_SECURITY_POLICY_REPORT_ONLY
else
ActionDispatch::Constants::CONTENT_SECURITY_POLICY
end
end
Defined in actionpack/lib/action_dispatch/http/content_security_policy.rb line 57
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ContentSecurityPolicy::Middleware