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
+5
View File
@@ -23,6 +23,11 @@ const BASE_URL = process.env.API_ROOT || `http://localhost:${port}`;
export default async function ApiProxy(req, res) {
var containerName = req.query.container;
var checkHash = req.query.hash;
if (typeof containerName === "undefined" || containerName.length === 0) {
return res.status(400).json();
}
var token = await getToken();
var queryUrl = "/api/file/getrepsblob?container=" + containerName;