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
Currently cy.setCookie hostOnly is controlled by the domain property. If omitted, the cookie will be set as hostOnly
However, because thirdparty cookies must have domain set for the user to specify which domain they want the cookie set on, it's impossible to set a hostOnly thirdparty cookie through the cy.setCookie api.
Similarly, users cant tell if a cookie is hostOnly on from the cy.getCookie api because domain exists in the cookie properties for both hostOnly and non-hostOnly cookies
Desired behavior
add a hostOnly property to cy.setCookie and cy.getCookie to allow users to set/distinguish a hostOnly cookie
Current behavior
Currently cy.setCookie
hostOnly
is controlled by thedomain
property. If omitted, the cookie will be set ashostOnly
However, because thirdparty cookies must have
domain
set for the user to specify which domain they want the cookie set on, it's impossible to set ahostOnly
thirdparty cookie through the cy.setCookie api.Similarly, users cant tell if a cookie is
hostOnly
on from thecy.getCookie
api because domain exists in the cookie properties for both hostOnly and non-hostOnly cookiesDesired behavior
add a
hostOnly
property tocy.setCookie
andcy.getCookie
to allow users to set/distinguish a hostOnly cookieTest code to reproduce
cy.setCookie({ domain: 'example.com' }) // sets non-hostOnly cookie
Cypress Version
1
Other
No response
The text was updated successfully, but these errors were encountered: