Allow images to be loaded from piwik
authorTom Hughes <tom@compton.nu>
Thu, 23 Nov 2017 22:22:01 +0000 (22:22 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 23 Nov 2017 22:22:01 +0000 (22:22 +0000)
config/initializers/secure_headers.rb

index f4633d7..f30a4b8 100644 (file)
@@ -15,6 +15,7 @@ if defined?(CSP_REPORT_URL)
     :report_uri => [CSP_REPORT_URL]
   }
 
+  csp_policy[:img_src] << PIWIK["location"] if defined?(PIWIK)
   csp_policy[:script_src] << PIWIK["location"] if defined?(PIWIK)
 else
   csp_policy = SecureHeaders::OPT_OUT