method
header_name
v7.1.3.4 -
Show latest stable
- Class:
ActionDispatch::ContentSecurityPolicy::Middleware
header_name(request)private
No documentation available.
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 54
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