mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-22 06:28:19 +02:00
feat(security): ameliorations securite - CSRF, sanitization validator.js, eval removal
This commit is contained in:
1 parent
78adc2c5ae
commit
0f8920f326
5 files changed
+342
-35
No files matched your search
+2
-2
@@ -886,8 +886,8 @@ export async function registerRoutes(app: Express): Promise<Server> {
|
||||
size: parts.file.buffer.length
|
||||
});
|
||||
|
||||
// Importer form-data dynamiquement avec eval pour ESM
|
||||
const FormDataModule = await eval('import("form-data")');
|
||||
// Import dynamique standard pour ESM (sans eval)
|
||||
const FormDataModule = await import('form-data');
|
||||
const FormData = FormDataModule.default;
|
||||
|
||||
const formData = new FormData();
|
||||
|
||||
Reference in new issue
Block a user