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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user