From: Haelwenn (lanodan) Monnier Date: Fri, 29 May 2020 15:17:02 +0000 (+0200) Subject: http_security_plug.ex: Fix non-proxied media X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=da1e31fae3f7a7e0063c3a6fb4315e1578d72daa;p=akkoma http_security_plug.ex: Fix non-proxied media --- 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]