risk1996
risk1996
SSolidJS
Created by risk1996 on 11/11/2024 in #support
Fetch on SSR is missing Cookie on request header
Got it! Thank you so much! It seems that I will need the getRequestEvent from solid-js/web. I will close the GH Issue with the resolution. Thank you so much for your time in helping me!
8 replies
SSolidJS
Created by risk1996 on 11/11/2024 in #support
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
SSolidJS
Created by risk1996 on 11/11/2024 in #support
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