Fix cookie merging in Server Action redirections (#61113)
This PR fixes the cookie merging logic in Server Actions. Specifically, when users do `cookies().set(...)` or `cookies.delete(...)` with a `redirect()` to an internal route followed. Currently, we are just concatenating the original cookies (request cookies) and the mutated cookies. That introduces several issues, like it can't override or delete an existing cookie. Closes NEXT-2221
Showing
Please
register
or
sign in
to comment