Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

added "media-src: 'self'" to CSP for resources #3578

Merged
merged 6 commits into from
Sep 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/3578.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix problem when playing media from Chrome using direct URL (thanks @remjey!)
1 change: 1 addition & 0 deletions synapse/rest/media/v1/download_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def _async_render_GET(self, request):
b" script-src 'none';"
b" plugin-types application/pdf;"
b" style-src 'unsafe-inline';"
b" media-src 'self';"
b" object-src 'self';"
)
server_name, media_id, name = parse_media_id(request)
Expand Down