1
0
mirror of https://github.com/sasjs/server.git synced 2026-01-07 22:50:05 +00:00

feat: enabled csrf tokens for web component

This commit is contained in:
Saad Jutt
2022-04-29 02:59:48 +05:00
parent 13403517a4
commit e462aebdc0
6 changed files with 176 additions and 13 deletions

View File

@@ -1,8 +1,9 @@
import express from 'express'
import { csrfProtection } from '../../app'
import webRouter from './web'
const router = express.Router()
router.use('/', webRouter)
router.use('/', csrfProtection, webRouter)
export default router