Merge branch 'uploads-csp-changes' into 'develop'

Uploads: Sandbox them in the CSP.

See merge request pleroma/pleroma!2389
This commit is contained in:
rinpatch 2020-04-15 10:15:15 +00:00
commit ad8630b95a
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ def call(%{request_path: <<"/", @path, "/", file::binary>>} = conn, opts) do
conn ->
conn
end
|> merge_resp_headers([{"content-security-policy", "sandbox"}])
config = Pleroma.Config.get(Pleroma.Upload)