Merge branch 'bugfix/csp-unproxied' into 'develop'
http_security_plug.ex: Fix non-proxied media See merge request pleroma/pleroma!2610
This commit is contained in:
parent
e313aa0977
commit
cd2df734dd
@ -75,7 +75,7 @@ defp csp_string do
|
||||
sources = get_proxy_and_attachment_sources()
|
||||
{[img_src, sources], [media_src, sources]}
|
||||
else
|
||||
{img_src, media_src}
|
||||
{[img_src, " https:"], [media_src, " https:"]}
|
||||
end
|
||||
|
||||
connect_src = ["connect-src 'self' ", static_url, ?\s, websocket_url]
|
||||
|
Loading…
Reference in New Issue
Block a user