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 2662fc4 commit 17cd26cCopy full SHA for 17cd26c
lib/secure_headers/configuration.rb
@@ -308,7 +308,7 @@ def generate_csp_headers(headers)
308
def generate_csp_headers_for_config(headers, header_key, csp_config)
309
unless csp_config.opt_out?
310
headers[header_key] = {}
311
- ContentSecurityPolicy::VARIATIONS.each do |name, _|
+ ContentSecurityPolicy::VARIATIONS.each_key do |name|
312
csp = ContentSecurityPolicy.make_header(csp_config, UserAgent.parse(name))
313
headers[header_key][name] = csp.freeze
314
end
0 commit comments