Worker doesn't work remotely as it should
Hi guys, I have this issue. When testing worker locally via wrangler, everything works just fine, but when switching to remote, it doesn't work like on local.
I have one endpoint, where I'm running two fetch requests. One does POST to login, grabs cookies and then fires another request with these cookies.
Locally second request returns correct data, remotely, I'm losing authorization, maybe it doesn't send cookie. So it returns html, as if I didn't send the cookie.
Same thing happens on deployed worker as well.
What can be the issue? It drives me nuts, been trying to make it work for like 2 days
I have one endpoint, where I'm running two fetch requests. One does POST to login, grabs cookies and then fires another request with these cookies.
Locally second request returns correct data, remotely, I'm losing authorization, maybe it doesn't send cookie. So it returns html, as if I didn't send the cookie.
Same thing happens on deployed worker as well.
What can be the issue? It drives me nuts, been trying to make it work for like 2 days