From e6dce0e05597186b201269f5662707b767442d5c Mon Sep 17 00:00:00 2001 From: f Date: Fri, 7 Feb 2020 20:38:56 -0300 Subject: [PATCH] cargar los iconos de trix --- config/initializers/content_security_policy.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index 5423271..7040a8d 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -14,7 +14,8 @@ Rails.application.config.content_security_policy do |policy| policy.script_src :self policy.font_src :self # TODO: Permitimos cargar imágenes remotas? - policy.img_src :self + # XXX: Los íconos de Trix se cargan vía data: + policy.img_src :self, :data # Ya no usamos applets! policy.object_src :none if Rails.env.development?