Class: Contrast::Agent::Assess::Rule::Response::ClickJacking
- Inherits:
-
HeaderRule
- Object
- BaseRule
- HeaderRule
- Contrast::Agent::Assess::Rule::Response::ClickJacking
- Defined in:
- lib/contrast/agent/assess/rule/response/click_jacking_header_rule.rb
Overview
These rules check the content of the HTTP Response to determine if the headers contains the required header
Constant Summary collapse
- HEADER_KEYS =
%w[X-Frame-Options].cs__freeze
- ACCEPTED_VALUES =
[/^deny/i, /^sameorigin/i].cs__freeze
- DEFAULT_SAFE =
false
Constants inherited from HeaderRule
Constants inherited from BaseRule
Instance Method Summary collapse
Methods inherited from HeaderRule
#analyze_response?, #headers?, #violated?
Methods inherited from BaseRule
Instance Method Details
#rule_id ⇒ Object
18 19 20 |
# File 'lib/contrast/agent/assess/rule/response/click_jacking_header_rule.rb', line 18 def rule_id 'clickjacking-control-missing' end |