NuxtN
Nuxt2y ago
1 reply
Gobbo

SSR and Cookies

Got a question referring to HttpOnly cookies from authentication ( set by backend ) and sending requests via SSR

I don't want mistmatches in hydration, so I want the server to be able to send requests with "credentials: include" however I don't believe the server has access to these cookies?

Anyone have best practice or a good solution to u se AsyncData and have cookies get sent?

So far have this which works but seems hacky af
image.png
Was this page helpful?