Skip to content

Commit

Permalink
PRI-46: Implement CSRF
Browse files Browse the repository at this point in the history
Implement CSRF check
  • Loading branch information
mgthuramoemyint authored Sep 9, 2024
1 parent 687f97e commit 7fde99f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if (isDev) {
app.use(httpBodyLimiter)
app.use(apiLimiter)
app.use(cookieParser());
app.get('/csrf-token', generateTokenHandler)
app.post('/auth/login', loginHandler)
app.post('/auth/logout', logoutHandler)
app.use('/api', jwtMiddleware, apiRouter)
Expand Down

0 comments on commit 7fde99f

Please sign in to comment.