Content-Security-Policy: sandbox for user-submitted files
This commit is contained in:
parent
43065cfb73
commit
cee8c93659
|
@ -45,6 +45,7 @@ impl DownloadingFile {
|
|||
|
||||
let mut res = HttpResponse::build(StatusCode::OK);
|
||||
|
||||
res.insert_header((header::CONTENT_SECURITY_POLICY, "sandbox"));
|
||||
res.insert_header((header::CONTENT_TYPE, mime::APPLICATION_OCTET_STREAM));
|
||||
res.insert_header((
|
||||
header::CONTENT_DISPOSITION,
|
||||
|
|
Loading…
Reference in a new issue