I have the following redirection scenario that I want my Cypress test to allow:
- My frontend code on domain A, redirects to server on domain B.
- Server B, redirects to domain C.
- Domain C, returns\redirects back to domain B.
- Domain B redirects back to domain A.
I tried using cg.origin()
, but it support only one redirection.
In every way I tried, I eventually got: chrome-error://chromewebdata/
I tried mocking the first redirection (from client-side to the remote server), but again, I got chrome-error://chromewebdata/ for the B->A redirection.
How can I solve this problem?