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
http://foo.com sets cookie foo=bar and redirects to http://bar.com
http://bar.com returns 200
cy.visit("http://foo.com") with a current superdomain of foo.com will result in no cookies being set, since the superdomain changes and causes the cookies to erroneously be cleared.
Desired behavior:
Cookies are kept from all redirects during a cy.visit.
This can be accomplished by getting rid of the shortcut we take to make cy.visit only send 1 HTTP request, even if superdomain changes. This shortcut is the root of all evil:
The code for this is done in cypress-io/cypress#5702, but has yet to be released.
We'll update this issue and reference the changelog when it's released.
Current behavior:
Given the following flow:
http://foo.com
sets cookiefoo=bar
and redirects tohttp://bar.com
http://bar.com
returns 200cy.visit("http://foo.com")
with a current superdomain offoo.com
will result in no cookies being set, since the superdomain changes and causes the cookies to erroneously be cleared.Desired behavior:
Cookies are kept from all redirects during a cy.visit.
This can be accomplished by getting rid of the shortcut we take to make
cy.visit
only send 1 HTTP request, even if superdomain changes. This shortcut is the root of all evil:cypress/packages/server/lib/server.coffee
Lines 364 to 382 in 0a24df2
Steps to reproduce: (app code and test code)
See #5702 for reproduction.
Versions
Cypress >=3.5.0
The text was updated successfully, but these errors were encountered: