Skip to content
Snippets Groups Projects
Unverified Commit 3d46ec5e authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

csp domain

parent 30de0806
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ module Communication::Website::WithSecurity
blocks.where(template_kind: :video).each do |block|
video_url = block.template.url
next unless video_url.present?
list << Video::Provider.find(video_url).iframe_host
list << Video::Provider.find(video_url).csp_domain
end
list
end
......
......@@ -17,7 +17,7 @@ class Video::Provider::Default
video_url
end
def iframe_host
def csp_domain
URI.parse(iframe_url).host
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment