lib/rollbar/middleware/js.rb in rollbar-2.16.4 vs lib/rollbar/middleware/js.rb in rollbar-2.17.0

- old
+ new

@@ -155,11 +155,11 @@ end def append_nonce? defined?(::SecureHeaders) && ::SecureHeaders.respond_to?(:content_security_policy_script_nonce) && defined?(::SecureHeaders::Configuration) && - !::SecureHeaders::Configuration.get.csp.opt_out? && - !::SecureHeaders::Configuration.get.current_csp[:script_src].to_a.include?("'unsafe-inline'") + !::SecureHeaders::Configuration.default.csp.opt_out? && + !::SecureHeaders::Configuration.default.current_csp[:script_src].to_a.include?("'unsafe-inline'") end end end end