]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/secure_headers.rb
Localisation updates from https://translatewiki.net.
[rails.git] / config / initializers / secure_headers.rb
index 54702a39915818ebbd0bace6a7486766c0b445cc..b24eb5c4264250c9f65c5ba5bd27bd91322a670f 100644 (file)
@@ -21,6 +21,9 @@ csp_policy = {
 csp_policy[:connect_src] << PIWIK["location"] if defined?(PIWIK)
 csp_policy[:img_src] << PIWIK["location"] if defined?(PIWIK)
 csp_policy[:script_src] << PIWIK["location"] if defined?(PIWIK)
+
+csp_policy[:img_src] << Settings.storage_url if Settings.key?(:storage_url)
+
 csp_policy[:report_uri] << Settings.csp_report_url if Settings.key?(:csp_report_url)
 
 cookie_policy = {