Enhance CORS and CSP configurations in Express app

This commit is contained in:
Julio Cesar
2025-08-20 17:26:28 +02:00
parent cede717994
commit 225c1b4cb8
4 changed files with 402 additions and 11 deletions

View File

@@ -8,7 +8,8 @@
"start": "node dist/test-backend/app.js",
"dev": "tsx app.ts",
"build": "tsc",
"generate": "node generate_meters.js"
"generate": "node generate_meters.js",
"test": "tsx test/run-tests.ts"
},
"dependencies": {
"cors": "2.8.5",
@@ -19,6 +20,8 @@
"@types/express": "5.0.3",
"@types/node": "24.3.0",
"tsx": "4.20.4",
"typescript": "5.9.2"
"typescript": "5.9.2",
"node-fetch": "3.3.2",
"@types/node-fetch": "2.6.3"
}
}