-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fix issue with the timing of setting cookies in the browser #23531
Comments
I believe this is likely the cause of #23565 as I am seeing the same behavior as the OP in that issue and it appears that it is due to the client side app not being able to read a cookie that was set on page load during a sequence of redirects/XHR requests that makeup the login process of the underlying app. |
I rolled back to 10.2 and my test started working again. |
Not sure how helpful this is, but my particular test is good to go up to 10.3. When run from 10.3.1 my test fails in a unique way unlike 10.4+ Let me know if any more detail would be helpful, I'll do the best I can. |
The code for this is done in cypress-io/cypress#23643, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Currently, if a cross-origin request sets a cookie and the app attempts to read the cookie via
document.cookie
synchronously on page load, thedocument.cookie
value will not be correct / up-to-date.Spec:
App:
The text was updated successfully, but these errors were encountered: