Next.js Discord

Discord Forum

Cookies in Route Handler are not working

Unanswered
Pollock posted this in #help-forum
Open in Discord
PollockOP
I've tried every method under the sun:

- await cookies() and modifying it
- Returning a new NextResponse after using NextResponse.cookies.set

No matter what I do, the Set-Cookie header is not sent.

1 Reply

PollockOP
I guess it's my fault for using the latest version, time to revert to one that actually works