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

Add 'sandbox' to CSP for media repo #4284

Merged
merged 2 commits into from
Dec 10, 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/4284.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add 'sandbox' to CSP for media reprository
3 changes: 2 additions & 1 deletion synapse/rest/media/v1/download_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def _async_render_GET(self, request):
set_cors_headers(request)
request.setHeader(
b"Content-Security-Policy",
b"default-src 'none';"
b"sandbox;"
b" default-src 'none';"
b" script-src 'none';"
b" plugin-types application/pdf;"
b" style-src 'unsafe-inline';"
Expand Down