Allow inline styles in iD
authorTom Hughes <tom@compton.nu>
Fri, 18 May 2018 19:28:09 +0000 (20:28 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 18 May 2018 19:28:09 +0000 (20:28 +0100)
app/controllers/site_controller.rb

index 50508f885df09affbb2451a297b386dce522cac5..d210928817976a67b14cff150738aa24ca8a4c2a 100644 (file)
@@ -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