From c5d3335a6c5d4a1b74d3f9d509bbc6c7dba65fb2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 18 May 2018 20:28:09 +0100 Subject: [PATCH] Allow inline styles in iD --- app/controllers/site_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 50508f885..d21092881 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -120,7 +120,8 @@ class SiteController < ApplicationController append_content_security_policy_directives( :connect_src => %w[*], :img_src => %w[* blob:], - :script_src => %w[dev.virtualearth.net *.wikipedia.org www.wikidata.org 'unsafe-eval'] + :script_src => %w[dev.virtualearth.net *.wikipedia.org www.wikidata.org 'unsafe-eval'], + :style_src => %w['unsafe-inline'] ) render "id", :layout => false -- 2.39.5