mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 20:39:24 -05:00
Add 'sandbox' to CSP for media repo (#4284)
* Add 'sandbox' to the CSP for media repo * Changelog
This commit is contained in:
parent
989f1167af
commit
89ac2a5bdb
1
changelog.d/4284.bugfix
Normal file
1
changelog.d/4284.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Add 'sandbox' to CSP for media reprository
|
@ -48,6 +48,7 @@ class DownloadResource(Resource):
|
||||
set_cors_headers(request)
|
||||
request.setHeader(
|
||||
b"Content-Security-Policy",
|
||||
b"sandbox;"
|
||||
b" default-src 'none';"
|
||||
b" script-src 'none';"
|
||||
b" plugin-types application/pdf;"
|
||||
|
Loading…
Reference in New Issue
Block a user