Apply suggestion to lib/pleroma/plugs/http_security_plug.ex
This commit is contained in:
parent
da1e31fae3
commit
109af93227
@ -75,7 +75,7 @@ defmodule Pleroma.Plugs.HTTPSecurityPlug do
|
|||||||
sources = get_proxy_and_attachment_sources()
|
sources = get_proxy_and_attachment_sources()
|
||||||
{[img_src, sources], [media_src, sources]}
|
{[img_src, sources], [media_src, sources]}
|
||||||
else
|
else
|
||||||
{img_src <> " https:", media_src <> " https:"}
|
{[img_src, " https:"], [media_src, " https:"]}
|
||||||
end
|
end
|
||||||
|
|
||||||
connect_src = ["connect-src 'self' ", static_url, ?\s, websocket_url]
|
connect_src = ["connect-src 'self' ", static_url, ?\s, websocket_url]
|
||||||
|
Loading…
Reference in New Issue
Block a user