Skip to content

Cannot clear cookie set on multiple subdomains #5723

Closed
@aronmgv

Description

@aronmgv

As mentioned here using command cy.clearCookie('nameOfCookie') we should be able to delete cookie no matter what.. but apparently since then behaviour has changed..

Didn't find an official way to clear the whitelist so tried setting defaults back to undefined or empty array - no effect whatsoever..

Cypress.Cookies.defaults({
    whitelist: [] / undefined
});

Cypress v 3.5.0.

Any other ideas how to remove the cookie which was whitelisted before?? Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions