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