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 5c3f928 commit 0c72911Copy full SHA for 0c72911
lib/secure_headers/headers/content_security_policy.rb
@@ -210,7 +210,7 @@ def combine_policies(original, additions)
210
raise ContentSecurityPolicyConfigError.new("Attempted to override an opt-out CSP config.")
211
end
212
213
- original = original.dup # in case the hash is frozen
+ original = original.dup if original.frozen?
214
215
# in case we would be appending to an empty directive, fill it with the default-src value
216
additions.keys.each do |directive|
0 commit comments