diff options
author | Jérémy Farnaud <remjey@users.noreply.github.com> | 2018-09-25 12:55:02 +0200 |
---|---|---|
committer | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-09-25 11:55:02 +0100 |
commit | 6cf261930ac4c5f08cd3d6bf1f5a37a2889f6e7b (patch) | |
tree | cad6e0c13d8a8c1e6686897da6c674cb6e6e5693 /changelog.d/3578.bugfix | |
parent | Merge pull request #3925 from matrix-org/erikj/fix_producers_unregistered (diff) | |
download | synapse-6cf261930ac4c5f08cd3d6bf1f5a37a2889f6e7b.tar.xz |
added "media-src: 'self'" to CSP for resources (#3578)
Synapse doesn’t allow for media resources to be played directly from Chrome. It is a problem for users on other networks (e.g. IRC) communicating with Matrix users through a gateway. The gateway sends them the raw URL for the resource when a Matrix user uploads a video and the video cannot be played directly in Chrome using that URL. Chrome argues it is not authorized to play the video because of the Content Security Policy. Chrome checks for the "media-src" policy which is missing, and defauts to the "default-src" policy which is "none". As Synapse already sends "object-src: 'self'" I thought it wouldn’t be a problem to add "media-src: 'self'" to the CSP to fix this problem.
Diffstat (limited to 'changelog.d/3578.bugfix')
-rw-r--r-- | changelog.d/3578.bugfix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/3578.bugfix b/changelog.d/3578.bugfix new file mode 100644 index 0000000000..9c52b6fa7e --- /dev/null +++ b/changelog.d/3578.bugfix @@ -0,0 +1 @@ +Fix problem when playing media from Chrome using direct URL (thanks @remjey!) |