summary refs log tree commit diff
path: root/synapse/rest/media/v1
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r--synapse/rest/media/v1/download_resource.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/download_resource.py b/synapse/rest/media/v1/download_resource.py
index e3843c1be5..a45ee9483e 100644
--- a/synapse/rest/media/v1/download_resource.py
+++ b/synapse/rest/media/v1/download_resource.py
@@ -47,7 +47,8 @@ class DownloadResource(Resource):
     def _async_render_GET(self, request):
         request.setHeader(
             "Content-Security-Policy",
-            "default-src none;"
+            "default-src 'none';"
+            " script-src 'none';"
             " plugin-types application/pdf;"
             " style-src 'unsafe-inline';"
             " object-src 'self';"