fix XSS and Root execution of NPM in docker

This commit is contained in:
Zimeng Xiong
2025-11-22 20:38:40 -08:00
parent ef412a3887
commit 69bffab745
6 changed files with 685 additions and 18 deletions
+4 -1
View File
@@ -56,7 +56,10 @@ export const importDrawings = async (
const res = await fetch(`${API_URL}/drawings`, {
method: "POST",
headers: { "Content-Type": "application/json" },
headers: {
"Content-Type": "application/json",
"X-Imported-File": "true", // Mark as imported file for additional validation
},
body: JSON.stringify(payload),
});