Added middleware
parent
50e0fa3c71
commit
00a36293ad
|
@ -57,5 +57,6 @@ export const accessTokenMiddleWare = (req, res, next) => {
|
||||||
const customHeaderValue = 'CustomHeader-' + data
|
const customHeaderValue = 'CustomHeader-' + data
|
||||||
|
|
||||||
res.setHeader('X-Custom-Header', customHeaderValue);
|
res.setHeader('X-Custom-Header', customHeaderValue);
|
||||||
|
res.cookie('customCookie', customHeaderValue, { httpOnly: true, secure: true });
|
||||||
next();
|
next();
|
||||||
};
|
};
|
Loading…
Reference in New Issue