useCookie empty on client?
I'm using useCookie with universal rendering.
However, when I try to access my cookie client side, it appears to be undefined however, SSR shows the cookie is there but then gets unset after?
Not sure why this is, here is my code and my cookie, this is all inside app.vue
1 Reply
it also briefly displays it in the view, however quickly disappears leading to a hydration mismatch
maybe im not understanding it well enough but not sure what else to do? the cookie is set via a seperate server mind
Clearly dont know how cookies work
HttpOnly means that only server can access it ( hence why it appears in the server ) didn't know this :)