moshest / next-client-cookies

SSR and client support for cookies in Next.js 13 (app directory)
MIT License
136 stars 9 forks source link

httpOnly flag #8

Closed primemb closed 11 months ago

primemb commented 11 months ago

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

moshest commented 11 months ago

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).