Fix options passed by allow_thirdparty_images

This commit is contained in:
Anton Khorev 2025-01-04 18:47:51 +03:00
parent 95b919c5d1
commit 201796cced
2 changed files with 4 additions and 1 deletions

View 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