ninjaparade
SSR and cookies
my current experience is that it seems that locally with HMR running, the first load the SSR happens more than 1 times, the first few return as though there is no cookie or value, but then the last one does. are you experiencing something similar?
8 replies
SSR and cookies
I am trying to work through this myself as well, currently I am using the
parseCookies
composable on a global server middleware and setting that cookie value that I need for the auth (api token) to the event.context.${yourObject}
as shown here https://nuxt.com/docs/guide/directory-structure/server#server-middleware8 replies