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
During a cy.visit or cy.request Cypress internally sets cookie values directly on the browser using the appropriate automation API's.
However there is an edge case where when Cypress receives a non domain based cookie it will incorrectly set the domain property on the cookie causing the cookie to be set as an explicit domain based cookie.
This has the effect of "doubling" cookies in the browser when the origin under test is not localhost.
These cookies are called hostOnly cookies, and the domain property should be omitted when setting cookies.
You can see this happening here:
describe("Domain Cookies",function(){Cypress.Cookies.debug(true)it("doubles the cookies",function(){cy.visit("http://66f9dab4.ngrok.io").getCookies()})})
The text was updated successfully, but these errors were encountered:
Taken from here: bahmutov/express-sessions-tutorial#4
During a
cy.visit
orcy.request
Cypress internally sets cookie values directly on the browser using the appropriate automation API's.However there is an edge case where when Cypress receives a non domain based cookie it will incorrectly set the
domain
property on the cookie causing the cookie to be set as an explicitdomain
based cookie.This has the effect of "doubling" cookies in the browser when the origin under test is not
localhost
.These cookies are called
hostOnly
cookies, and thedomain
property should be omitted when setting cookies.You can see this happening here:
The text was updated successfully, but these errors were encountered: