instance method
header_name
Ruby on Rails 5.2.8.1
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 32
def header_name(request)
if request.content_security_policy_report_only
POLICY_REPORT_ONLY
else
POLICY
end
end
Defined in actionpack/lib/action_dispatch/http/content_security_policy.rb line 32
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::ContentSecurityPolicy::Middleware