N
Nuxt4mo ago
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
No description
1 Reply
Gobbo
GobboOP4mo ago
useCookie is u sed on the server whilst client just uses credentials
Want results from more Discord servers?
Add your server