mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-14 05:25:53 +00:00
Merge pull request #2324 from overleaf/spd-devcsrf-resurrect
Reinstate /dev/csrf route and add explanatory comment GitOrigin-RevId: 48fe437040860e974ada4e22409762c74a14d394
This commit is contained in:
parent
94707c08ea
commit
47137f6c03
1 changed files with 2 additions and 3 deletions
|
@ -972,9 +972,8 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) {
|
|||
res.send('web sharelatex is alive (api)')
|
||||
)
|
||||
|
||||
if (['development', 'test'].includes(process.env.NODE_ENV)) {
|
||||
webRouter.get('/dev/csrf', (req, res) => res.send(res.locals.csrfToken))
|
||||
}
|
||||
// used by kubernetes health-check and acceptance tests
|
||||
webRouter.get('/dev/csrf', (req, res) => res.send(res.locals.csrfToken))
|
||||
|
||||
publicApiRouter.get('/health_check', HealthCheckController.check)
|
||||
privateApiRouter.get('/health_check', HealthCheckController.check)
|
||||
|
|
Loading…
Reference in a new issue