edge badge
Methods
C
Constants
POLICY = "action_dispatch.content_security_policy".freeze
 
POLICY_REPORT_ONLY = "action_dispatch.content_security_policy_report_only".freeze
 
Instance Public methods
content_security_policy()
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 54
def content_security_policy
  get_header(POLICY)
end
content_security_policy=(policy)
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 58
def content_security_policy=(policy)
  set_header(POLICY, policy)
end
content_security_policy_report_only()
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 62
def content_security_policy_report_only
  get_header(POLICY_REPORT_ONLY)
end
content_security_policy_report_only=(value)
# File actionpack/lib/action_dispatch/http/content_security_policy.rb, line 66
def content_security_policy_report_only=(value)
  set_header(POLICY_REPORT_ONLY, value)
end