]> git.openstreetmap.org Git - rails.git/commitdiff
allow data URIs for images in iD
authorMartin Raifer <martin@raifer.tech>
Sun, 26 May 2024 12:26:31 +0000 (14:26 +0200)
committerMartin Raifer <martin@raifer.tech>
Sun, 26 May 2024 13:01:30 +0000 (15:01 +0200)
app/controllers/site_controller.rb

index 172be56531df7e444e4c7ed3b94236480378c660..265901bec7e3cdf92cf086c4cd317dffe715325a 100644 (file)
@@ -18,7 +18,7 @@ class SiteController < ApplicationController
 
   content_security_policy(:only => :id) do |policy|
     policy.connect_src("*")
-    policy.img_src("*", :blob)
+    policy.img_src(*policy.img_src, "*", :blob)
     policy.script_src(*policy.script_src, "dev.virtualearth.net", :unsafe_eval)
     policy.style_src(*policy.style_src, :unsafe_inline)
   end