-
-
Notifications
You must be signed in to change notification settings - Fork 253
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
Cookie not being saved with Next.js 15 and Safari #870
Comments
Had the same issue here! Next.js kept throwing the error |
@josiahwiebe or @CasvanderGun would you like to open a PR? It should work with 14 and 15 ideally, thanks! |
@CasvanderGun |
@josiahwiebe The weird thing is that this "solution" seems to be unstable. Most times it won't throw the error mentioned above, but sometimes it will, even when the sameSite option is set to strict. Also having troubles again? @vvo Unfortunately I'm still a very unexperienced developer, so I don't know whether I would be able to add a lot of value here. Just trying to get my first app working, which is already challenging enough :) |
@josiahwiebe Thanks a lot for this, if you find a way to fix it open a PR. Otherwise I will have a look but in approximately 2 weeks. Thanks. |
In my tests with If |
It seems like the change to the
cookies()
function in Next.js may have broken a variety of things (#840, #861, #869).The specific issue that I've encountered is that the cookie does not get saved when using Safari (version 18.0.1). I've created a simple reproduction for the issue here: https://github.com/josiahwiebe/iron-session-next-15-safari-example
Steps to reproduce
These examples should be tested in Safari. In Chromium based browsers and Firefox, this example behaves as expected.
The text was updated successfully, but these errors were encountered: