mirror of
https://github.com/sasjs/server.git
synced 2026-01-08 23:10:05 +00:00
fix: setting CSRF Token for only rendering SPA
This commit is contained in:
@@ -6,11 +6,6 @@ const router = express.Router()
|
||||
|
||||
router.use(csrfProtection)
|
||||
|
||||
router.use(function (req, res, next) {
|
||||
res.cookie('XSRF-TOKEN', req.csrfToken())
|
||||
next()
|
||||
})
|
||||
|
||||
router.use('/', webRouter)
|
||||
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user