diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-05-29 17:17:02 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2020-05-29 17:20:09 +0200 |
commit | da1e31fae3f7a7e0063c3a6fb4315e1578d72daa (patch) | |
tree | 185560ed5aead29914de5a69eed68edf4625697a | |
parent | 984897810956c723a48f49bf8e097471527ebd38 (diff) | |
download | pleroma-da1e31fae3f7a7e0063c3a6fb4315e1578d72daa.tar.gz |
http_security_plug.ex: Fix non-proxied media
-rw-r--r-- | lib/pleroma/plugs/http_security_plug.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/plugs/http_security_plug.ex b/lib/pleroma/plugs/http_security_plug.ex index 2208d1d6c..4b926e867 100644 --- a/lib/pleroma/plugs/http_security_plug.ex +++ b/lib/pleroma/plugs/http_security_plug.ex @@ -75,7 +75,7 @@ defmodule Pleroma.Plugs.HTTPSecurityPlug 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] |