moshest / next-client-cookies

SSR and client support for cookies in Next.js 13 (app directory)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

httpOnly flag

primemb opened this issue · comments

Hi
i have a question why on set method options there is not option for httpOnly? the nextjs cookies has it

Since our library support both client and server there is no sense to support it. httpOnly support only server side cookies.

However, we will able to read it from the server-side (which may produce some inconsistency between the server and the client).