Angular-CLI proxy not working inside docker
I have a docker-compose file with everything I need for my project. This docker-compose has a nginx server, mysql, phpmyadmin and php. At the top of it, I added recently an angular container. Everything is working fine if I go to localhost:4200, I'm on the angular app, and if I go to localhost:80, I'm on the Laravel backend. Now I need to make a simple classical request to my backend API. I set up a proxy for angular looking like this : { "/api/*": { "target":"http://localhost:80", "secure":false, "changeOrigin":true, "pathRewrite": {"^/api" : ""}, "logLevel":"debug" } } This is the config I