Fix options passed by allow_thirdparty_images
This commit is contained in:
parent
95b919c5d1
commit
201796cced
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue