Class: SecureHeaders::ContentSecurityPolicyReportOnlyConfig

Inherits:
ContentSecurityPolicyConfig show all
Defined in:
lib/secure_headers/headers/content_security_policy_config.rb

Constant Summary collapse

HEADER_NAME =
"Content-Security-Policy-Report-Only".freeze

Constants inherited from ContentSecurityPolicyConfig

SecureHeaders::ContentSecurityPolicyConfig::ATTRS, SecureHeaders::ContentSecurityPolicyConfig::DEFAULT

Instance Method Summary collapse

Methods inherited from ContentSecurityPolicyConfig

attrs

Methods included from DynamicConfig

#==, #append, #directive_value, #dup, #initialize, #initialize_copy, #merge, #merge!, #opt_out?, #to_h, #update_directive

Instance Method Details

#make_report_onlyObject



116
117
118
# File 'lib/secure_headers/headers/content_security_policy_config.rb', line 116

def make_report_only
  self
end

#report_only?Boolean

Returns:

  • (Boolean)


112
113
114
# File 'lib/secure_headers/headers/content_security_policy_config.rb', line 112

def report_only?
  true
end