yuken пре 3 година
родитељ
комит
3078771f7e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/app/src/server/middlewares/api-rate-limiter.ts

+ 1 - 1
packages/app/src/server/middlewares/api-rate-limiter.ts

@@ -43,7 +43,7 @@ module.exports = () => {
   return async(req: Request, res: Response, next: NextFunction) => {
   return async(req: Request, res: Response, next: NextFunction) => {
 
 
     const endpoint = req.path;
     const endpoint = req.path;
-    const key = md5(req.ip + endpoint);
+    const key = md5(req.ip + endpoint + req.method);
 
 
     let customizedConfig;
     let customizedConfig;
     const configForEndpoint = configWithoutRegExp[endpoint];
     const configForEndpoint = configWithoutRegExp[endpoint];