Cypress automatically adds Cookie to a backend call when preforming click action on a button #27197
Unanswered
SoundararajanMaersk
asked this question in
Component Testing
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Cookie is automatically adding as request header to backend api call when performing a click action on a button on our application page. We tried with intercepting the call and clearing/deleting cookies but not working. We want to remove the cookie getting added as a request header.
cy.clearCookie(CookieName);
Cypress.automation('clear:cookie', { name: 'CookieName' })
delete req.headers["Cookie"]
Can anyone one help on this ?
Beta Was this translation helpful? Give feedback.
All reactions