From 4ef6876b32e6c56475c3f4c709c7ce1071c47227 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Sun, 26 May 2024 14:26:31 +0200 Subject: [PATCH] allow data URIs for images in iD --- app/controllers/site_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 172be5653..265901bec 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -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 -- 2.39.5