Replies: 2 comments
-
Any clue of what is happening ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
@navalex I had a similar issue... Have you found a way to solve this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
I'm encountering a strange behaviour when trying to use Cypress with the docker image
cypress/included:13.5.0
when my server try to set httpOnly cookies.For the moment I have only 1 test that try to login a user and logout. Works perfectly on localhost running the test manually with Cypress GUI.
I have several services running at same time to make my app works (front, back, supertokens/auth, 2 postgres, monitoring...), so I tried to make a special CI-dedicated docker-compose file to run my E2E tests. But the test stop pass in this environment.
The only difference I have with my localhost test, is urls. On my CI docker compose, I prefer avoid opening any port, and I just make services communicate using their service name as url (ex: http://backend:3005).
Anyway to gather some help, I created a really basic repo with a frontend and backend server, and a docker-compose to run the whole thing in headless in the same environment as my personal project. The backend set 3 cookies in httpOnly, sameSite none and secure true.
Reproduce issue: https://github.com/navalex/cy-httpOnly-cookie-error
Any idea of why it does that and how to fix it ? I don't want to change my auth system only because Cypress doesn't support that...
Beta Was this translation helpful? Give feedback.
All reactions