mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 19:34:34 +00:00
fix: Revert "fix(security): missing cookie flags are added"
This reverts commit 526402fd73.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import express from 'express'
|
||||
import { cookieOptions } from '../../app'
|
||||
import { WebController } from '../../controllers/web'
|
||||
import { authenticateAccessToken, desktopRestrict } from '../../middlewares'
|
||||
import { authorizeValidation, loginWebValidation } from '../../utils'
|
||||
@@ -14,7 +13,7 @@ webRouter.get('/', async (req, res) => {
|
||||
} catch (_) {
|
||||
response = 'Web Build is not present'
|
||||
} finally {
|
||||
res.cookie('XSRF-TOKEN', req.csrfToken(), cookieOptions)
|
||||
res.cookie('XSRF-TOKEN', req.csrfToken())
|
||||
|
||||
return res.send(response)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user