I also encountered this problem, but the solution for me was the following: check the CORS rules on the server side of the application, when the server side receives requests through the internal network of the docker, then the host is called as a service from docker-compose.yaml