You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And then import that component into the app/page.tsx file, you'll notice that it does set the correct cookies, and forward them! This is also because the default parameter for the fetch option of credentials is same-origin which will automatically forward the cookies alongside the request.
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 Binaries: Node: 16.17.0 npm: 8.15.0 Yarn: N/A pnpm: 7.9.3 Relevant packages: next: 13.2.5-canary.21 eslint-config-next: 13.2.4 react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true)
Link to the code that reproduces this issue
https://github.com/dijonmusters/route-handlers-cookies-bug
To Reproduce
npm run dev
cookiesList
is an empty array[]
Describe the Bug
Cookies are not being correctly sent to the GET method of Route Handlers.
If you do this for a POST or PUT request it sends the correct cookies - only seems to be a problem with the GET method in Route Handlers.
Expected Behavior
cookiesList
should contain a cookietest=yep
Which browser are you using? (if relevant)
Arc Version 0.95.1 (37921)
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: