aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHaelwenn <git.pleroma.social@hacktivis.me>2018-11-26 19:56:49 +0000
committerHaelwenn <git.pleroma.social@hacktivis.me>2018-11-26 19:56:49 +0000
commit3370924b8ba87354249182694cfa3b598a66e6de (patch)
tree83b89af74c122e4cc68cd65dcf376fe7d0f75758 /lib
parent39a3b1724ad5bf5828142d4e83d7cb2bbb45a0d9 (diff)
parent591b11eafcc49a7812390a03d29596b4a96ad5f8 (diff)
downloadpleroma-3370924b8ba87354249182694cfa3b598a66e6de.tar.gz
Merge branch 'add-manifest-src-to-csp' into 'develop'
Add manifest-src to CSP to allow manifest.json See merge request pleroma/pleroma!474
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/plugs/http_security_plug.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/plugs/http_security_plug.ex b/lib/pleroma/plugs/http_security_plug.ex
index 31c7332f8..84d6506e3 100644
--- a/lib/pleroma/plugs/http_security_plug.ex
+++ b/lib/pleroma/plugs/http_security_plug.ex
@@ -39,6 +39,7 @@ defmodule Pleroma.Plugs.HTTPSecurityPlug do
"font-src 'self'",
"script-src 'self'",
"connect-src 'self' " <> String.replace(Pleroma.Web.Endpoint.static_url(), "http", "ws"),
+ "manifest-src 'self'",
"upgrade-insecure-requests"
]
|> Enum.join("; ")