]> git.openstreetmap.org Git - rails.git/commitdiff
Include data: when using allow_thirdparty_images CSP
authorAnton Khorev <tony29@yandex.ru>
Wed, 4 Dec 2024 16:26:21 +0000 (19:26 +0300)
committerAnton Khorev <tony29@yandex.ru>
Wed, 4 Dec 2024 16:26:21 +0000 (19:26 +0300)
app/controllers/application_controller.rb

index 7ce804ced01af000ada0560ee4f27f99046618ac..fc90e0be7874652475307a695eefb2aece8990fb 100644 (file)
@@ -21,7 +21,7 @@ class ApplicationController < ActionController::Base
 
   def self.allow_thirdparty_images(**options)
     content_security_policy(options) do |policy|
-      policy.img_src("*")
+      policy.img_src("*", :data)
     end
   end