From: Anton Khorev Date: Wed, 4 Dec 2024 16:26:21 +0000 (+0300) Subject: Include data: when using allow_thirdparty_images CSP X-Git-Tag: live~78^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/88d80018b52a4b815b5e140c3cd1dd9326567bae?ds=inline;hp=-c Include data: when using allow_thirdparty_images CSP --- 88d80018b52a4b815b5e140c3cd1dd9326567bae diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7ce804ced..fc90e0be7 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -21,7 +21,7 @@ class ApplicationController < ActionController::Base def self.allow_thirdparty_images(**options) content_security_policy(options) do |policy| - policy.img_src("*") + policy.img_src("*", :data) end end