risk1996
Fetch on SSR is missing Cookie on request header
If you mean something like the parameter
{ credentials: "include" }
on the fetch parameter, I have also tried that too and did not work as well in passing the cookie on the SSR rendering.
I will clarify that on the GH Issues, too.8 replies
Fetch on SSR is missing Cookie on request header
Since I am passing an HTTP-only cookie (present on the
entry-server.tsx
context
object) but not on the GET
handler in routes/api/test.ts
, how do I pass the cookie to the GET
handler via the fetch
method?
I would appreciate it if you can give code snippets if possible?8 replies