aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-05-29 19:26:54 +0000
committerrinpatch <rinpatch@sdf.org>2020-05-29 19:26:54 +0000
commit660d49227b951185d9218b787de70cc14f217417 (patch)
tree3f4a282d2c15d824af428a3db31cd47d9de14518
parent219d2b3146ee72abc0bb8bd163c0ddcd986988fc (diff)
parentd38f28870e7ba1c8c1b315d52e68a83fb1a68b6d (diff)
downloadpleroma-660d49227b951185d9218b787de70cc14f217417.tar.gz
Merge branch 'connect-src' into 'develop'
Add blob: to connect-src CSP, fixes #1827 Closes #1827 See merge request pleroma/pleroma!2608
-rw-r--r--CHANGELOG.md1
-rw-r--r--lib/pleroma/plugs/http_security_plug.ex2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dabc2a85a..839bf90ab 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -44,6 +44,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix follower/blocks import when nicknames starts with @
- Filtering of push notifications on activities from blocked domains
- Resolving Peertube accounts with Webfinger
+- `blob:` urls not being allowed by connect-src CSP
## [Unreleased (patch)]
diff --git a/lib/pleroma/plugs/http_security_plug.ex b/lib/pleroma/plugs/http_security_plug.ex
index 2208d1d6c..41e3a31f4 100644
--- a/lib/pleroma/plugs/http_security_plug.ex
+++ b/lib/pleroma/plugs/http_security_plug.ex
@@ -78,7 +78,7 @@ defmodule Pleroma.Plugs.HTTPSecurityPlug do
{img_src, media_src}
end
- connect_src = ["connect-src 'self' ", static_url, ?\s, websocket_url]
+ connect_src = ["connect-src 'self' blob: ", static_url, ?\s, websocket_url]
connect_src =
if Pleroma.Config.get(:env) == :dev do