Setting an http-only cookie from a React Server Component
Unanswered
House Wren posted this in #help-forum
House WrenOP
Is there a way to set an http-only cookie from a React Server Component?
I can't use middleware because I'm creating a session cookie with Firebase auth which uses nodejs.
related: https://github.com/vercel/next.js/issues/51875
Thanks in advance!
I can't use middleware because I'm creating a session cookie with Firebase auth which uses nodejs.
related: https://github.com/vercel/next.js/issues/51875
Thanks in advance!
1 Reply
unfortunately you cannot tailor HTTP response headers as response are already sent to client. Server Components send chunk of wire-format HTML progressively. so it is impossible to modify the header that are sent already.