Skip to content
Snippets Groups Projects
Commit 1c005111 authored by David Baker's avatar David Baker Committed by Richard van der Hoff
Browse files

Add 'sandbox' to CSP for media repo (#4284)

* Add 'sandbox' to the CSP for media repo

* Changelog
parent 128294d3
No related branches found
No related tags found
No related merge requests found
Add 'sandbox' to CSP for media reprository
...@@ -48,7 +48,8 @@ class DownloadResource(Resource): ...@@ -48,7 +48,8 @@ class DownloadResource(Resource):
set_cors_headers(request) set_cors_headers(request)
request.setHeader( request.setHeader(
b"Content-Security-Policy", b"Content-Security-Policy",
b"default-src 'none';" b"sandbox;"
b" default-src 'none';"
b" script-src 'none';" b" script-src 'none';"
b" plugin-types application/pdf;" b" plugin-types application/pdf;"
b" style-src 'unsafe-inline';" b" style-src 'unsafe-inline';"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment