From ae6309330029910f50845a7fd1e111317580982b Mon Sep 17 00:00:00 2001 From: Eric Mc Sween Date: Wed, 20 May 2020 10:19:28 -0400 Subject: [PATCH] Merge pull request #2799 from overleaf/ho-rate-limit-additions add rate limiting to /status/compiler/:Project_id GitOrigin-RevId: 5237121cc281207b261246b742bd7b52c844434d --- services/web/app/src/router.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/web/app/src/router.js b/services/web/app/src/router.js index 0baaee6b53..3ac14d4d12 100644 --- a/services/web/app/src/router.js +++ b/services/web/app/src/router.js @@ -990,6 +990,11 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) { webRouter.get( '/status/compiler/:Project_id', + RateLimiterMiddleware.rateLimit({ + endpointName: 'status-compiler', + maxRequests: 10, + timeInterval: 60 + }), AuthorizationMiddleware.ensureUserCanReadProject, function(req, res) { const projectId = req.params.Project_id