We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f5103 commit caa7d92Copy full SHA for caa7d92
lib/secure_headers/headers/content_security_policy.rb
@@ -53,7 +53,7 @@ def build_value
53
directives.map do |directive_name|
54
case DIRECTIVE_VALUE_TYPES[directive_name]
55
when :boolean
56
- symbol_to_hyphen_case(directive_name)
+ symbol_to_hyphen_case(directive_name) if @config[directive_name]
57
when :string
58
[symbol_to_hyphen_case(directive_name), @config[directive_name]].join(" ")
59
else
0 commit comments