We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f4ed2b commit 39f52a3Copy full SHA for 39f52a3
1 file changed
backend/src/app.js
@@ -318,9 +318,9 @@ Redis.init()
318
});
319
320
// ZAP Scan Proxy Disclosure Alert fix
321
- const blockedMethods = ['TRACE', 'TRACK', 'OPTIONS'];
+ const blockedMethods = new Set(['TRACE', 'TRACK', 'OPTIONS']);
322
app.use((req, res, next) => {
323
- if (blockedMethods.includes(req.method)) return res.sendStatus(HttpStatus.METHOD_NOT_ALLOWED);
+ if (blockedMethods.has(req.method)) return res.sendStatus(HttpStatus.METHOD_NOT_ALLOWED);
324
return next();
325
326
app.disable('x-powered-by');
0 commit comments