Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Middleware should merge API route response cookies #1797

Closed
ascorbic opened this issue Nov 22, 2022 · 2 comments · Fixed by #1870
Closed

Middleware should merge API route response cookies #1797

ascorbic opened this issue Nov 22, 2022 · 2 comments · Fixed by #1870
Assignees

Comments

@ascorbic
Copy link
Member

Currently, calling res.cookies.set in middleware replaces any cookies set by an API route. Instead they should be merged.

e2e test: skip-trailing-slash-redirect

@ascorbic
Copy link
Member Author

The specific test is this one, which you can enable by setting RUN_SKIPPED_TESTS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants