Allow iD to access wikidata
authorTom Hughes <tom@compton.nu>
Wed, 16 May 2018 10:36:46 +0000 (11:36 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 16 May 2018 10:36:46 +0000 (11:36 +0100)
app/controllers/site_controller.rb

index 394f7b9..50508f8 100644 (file)
@@ -120,7 +120,7 @@ class SiteController < ApplicationController
     append_content_security_policy_directives(
       :connect_src => %w[*],
       :img_src => %w[* blob:],
-      :script_src => %w[dev.virtualearth.net *.wikipedia.org 'unsafe-eval']
+      :script_src => %w[dev.virtualearth.net *.wikipedia.org www.wikidata.org 'unsafe-eval']
     )
 
     render "id", :layout => false