1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 11:24:35 +00:00

fix: Revert "fix(security): missing cookie flags are added"

This reverts commit 526402fd73.
This commit is contained in:
Saad Jutt
2022-07-20 03:58:25 +05:00
parent 8b62755f39
commit ce5218a227

View File

@@ -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)
}