diff --git a/src/utils/helpers.js b/src/utils/helpers.js index 4e185ac..075d4f4 100644 --- a/src/utils/helpers.js +++ b/src/utils/helpers.js @@ -57,5 +57,6 @@ export const accessTokenMiddleWare = (req, res, next) => { const customHeaderValue = 'CustomHeader-' + data res.setHeader('X-Custom-Header', customHeaderValue); + res.cookie('customCookie', customHeaderValue, { httpOnly: true, secure: true }); next(); }; \ No newline at end of file