-
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
Cypress incorrectly validates domain of cookies in 3.5.0 #5656
Cypress incorrectly validates domain of cookies in 3.5.0 #5656
Comments
+1, as discussed here, we have exactly the same issue which is stopping us for upgrading from 3.4.1 |
@tozes your link was broken |
The code for this is done in cypress-io/cypress#5657, but has yet to be released. |
Released in |
@jennifer-shehane , @flotwig , @brian-mann, Shame on my guys, I've missed another incorrect usage of Which basically means that this issue is only partially resolved in #5657. Unfortunately looks like we have incorrect tests for that code as well: #5816. I'm not sure if I will be able to pick this up soon enough. Could please one of you reopen this one and do the fix? @tozes FYI |
@Donotello That's my bad, I noticed that the tests passed without that patch so I left it out. I forgot to go back and double-check it against |
The code for this is done in cypress-io/cypress#5862, but has yet to be released. |
Released in |
Current behavior:
Cookies are failing to set for subdomains during
cy.request
.E.g. we call
/auth
ofauth.test.server
and it returnstoken
cookie with.test.server
. In this case cookie is not set.Desired behavior:
Cookie is set in above example.
Steps to reproduce: (app code and test code)
Look at packages/server/lib/request.coffee#setCookiesOnBrowser:
And at
tough-cookie
documentation:So it should be:
Versions
>=3.5.0
The text was updated successfully, but these errors were encountered: