HonoH
Hono2y ago
N01R

Cookies doesn't process

When I try to run in my middleware the following

setCookie(c, 'test', 'res', { maxAge: 60 * 60 * 24 * 7, httpOnly: true })
console.log(getCookie(c, 'test'));


the result I get is undefined, then randomly after a while when I rerun it shows the cookie, but the cookie never allowed to be deleted or changed and always stays the same.
Was this page helpful?