Class: SecureHeaders::ContentSecurityPolicyConfig
- Inherits:
-
Object
- Object
- SecureHeaders::ContentSecurityPolicyConfig
show all
- Includes:
- DynamicConfig
- Defined in:
- lib/secure_headers/headers/content_security_policy_config.rb
Constant Summary
collapse
"Content-Security-Policy".freeze
- ATTRS =
Set.new(PolicyManagement::ALL_DIRECTIVES + PolicyManagement::META_CONFIGS + PolicyManagement::NONCES)
- DEFAULT =
{
default_src: %w('self' https:),
font_src: %w('self' https: data:),
img_src: %w('self' https: data:),
object_src: %w('none'),
script_src: %w(https:),
style_src: %w('self' https: 'unsafe-inline')
}
Class Method Summary
collapse
Instance Method Summary
collapse
#==, #append, #directive_value, #dup, #initialize, #initialize_copy, #merge, #merge!, #opt_out?, #to_h, #update_directive
Class Method Details
.attrs ⇒ Object
84
85
86
|
# File 'lib/secure_headers/headers/content_security_policy_config.rb', line 84
def self.attrs
ATTRS
end
|
Instance Method Details
#make_report_only ⇒ Object
#report_only? ⇒ Boolean
100
101
102
|
# File 'lib/secure_headers/headers/content_security_policy_config.rb', line 100
def report_only?
false
end
|