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
While testing our angular/axios application, cypress seems to prevent adding the XSRF-TOKEN to the cookies header while performing POST requests.
This leads to 403 error sent from our spring boot backend which cannot compare the X-XSRF token with the cookie value.
While debugging with cy.getCookie and cy.log when running tests with cypress open we also realized the cookie values logged by cypress are different to the one cookie values shown in the chrome dev-tools.
Is this a known issue? How can we prevent cypress of removing cookie headers?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
While testing our angular/axios application, cypress seems to prevent adding the XSRF-TOKEN to the cookies header while performing POST requests.
This leads to 403 error sent from our spring boot backend which cannot compare the X-XSRF token with the cookie value.
While debugging with
cy.getCookie
andcy.log
when running tests withcypress open
we also realized the cookie values logged by cypress are different to the one cookie values shown in the chrome dev-tools.Is this a known issue? How can we prevent cypress of removing cookie headers?
Beta Was this translation helpful? Give feedback.
All reactions