From: lain Date: Wed, 15 Apr 2020 10:05:22 +0000 (+0200) Subject: Uploads: Sandbox them in the CSP. X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=a4afeed4266e75279422a6721f0a9a2aece0b9ea;p=akkoma Uploads: Sandbox them in the CSP. --- diff --git a/lib/pleroma/plugs/uploaded_media.ex b/lib/pleroma/plugs/uploaded_media.ex index 36ff024a7..94147e0c4 100644 --- a/lib/pleroma/plugs/uploaded_media.ex +++ b/lib/pleroma/plugs/uploaded_media.ex @@ -41,6 +41,7 @@ defmodule Pleroma.Plugs.UploadedMedia do conn -> conn end + |> merge_resp_headers([{"content-security-policy", "sandbox"}]) config = Pleroma.Config.get(Pleroma.Upload)