Added middleware #2

Merged
kar merged 2 commits from feature/middleware into main 2024-07-27 08:03:21 +00:00
Showing only changes of commit 00a36293ad - Show all commits

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