TASK22019: phase 12 harden download and blob proxy guards

This commit is contained in:
2026-03-13 12:49:54 +00:00
parent 36260bb405
commit 0ca63d0228
5 changed files with 206 additions and 2 deletions
+10
View File
@@ -24,6 +24,16 @@ export default async function ApiProxy(req, res) {
var containerName = req.query.container;
var casefolderID = req.query.casefolderID;
var checkHash = req.query.hash;
if (
typeof containerName === "undefined" ||
containerName.length === 0 ||
typeof casefolderID === "undefined" ||
casefolderID.length === 0
) {
return res.status(400).json();
}
var token = await getToken();
var queryUrl =