Next.js Discord

Discord Forum

Best strategy for using cookies on the server

Unanswered
Philippine Crocodile posted this in #help-forum
Open in Discord
Philippine CrocodileOP
I have an endpoint that is sending back a http only cookie from backend. I need to make requests from server components and/or route handlers with this cookie value.

Endpoint in question is a simple login, basically a verify function, so used in a client component.

Whats best options for getting this cookie and then using it with my requests in server components?

0 Replies