Added middleware

feature/middleware
Arkadyuti Sarkar 2024-07-26 20:20:09 +05:30
parent 50e0fa3c71
commit 00a36293ad
1 changed files with 1 additions and 0 deletions

View File

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