diff options
author | Erik Johnston <erikj@jki.re> | 2016-08-17 17:22:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-17 17:22:43 +0100 |
commit | 2a0d8f821929e0a74727ead806b0cce048aa5a16 (patch) | |
tree | 0b14a1131ee2d7d06fe3bb5680907f6336891ff0 /synapse | |
parent | Merge pull request #1011 from matrix-org/dbkr/contains_display_name_override (diff) | |
parent | Set `Content-Security-Policy` on media repo (diff) | |
download | synapse-2a0d8f821929e0a74727ead806b0cce048aa5a16.tar.xz |
Merge pull request #1021 from matrix-org/erikj/mediasecurity_policy
Set `Content-Security-Policy` on media repo
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/rest/media/v1/download_resource.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/rest/media/v1/download_resource.py b/synapse/rest/media/v1/download_resource.py index 9f69620772..9f0625a822 100644 --- a/synapse/rest/media/v1/download_resource.py +++ b/synapse/rest/media/v1/download_resource.py @@ -45,6 +45,7 @@ class DownloadResource(Resource): @request_handler() @defer.inlineCallbacks def _async_render_GET(self, request): + request.setHeader("Content-Security-Policy", "sandbox") server_name, media_id, name = parse_media_id(request) if server_name == self.server_name: yield self._respond_local_file(request, media_id, name) |