]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Fix options passed by allow_thirdparty_images
[rails.git] / app / controllers / application_controller.rb
index 32b53bad71c3f431d79234d65e354f6cafcf13c9..1ef49bf4629c209a6e14a61c3fc97656c5405420 100644 (file)
@@ -20,7 +20,7 @@ class ApplicationController < ActionController::Base
   helper_method :oauth_token
 
   def self.allow_thirdparty_images(**options)
-    content_security_policy(options) do |policy|
+    content_security_policy(**options) do |policy|
       policy.img_src("*", :data)
     end
   end