1# Create Proxy file proxy.conf.json in root folder with the below content
2
3{
4 "/api/*": {
5 "target": "http://localhost:8080",
6 "secure": false,
7 "logLevel": "debug",
8 "changeOrigin": true,
9 "pathRewrite": { "^/api": "" } // needed if you want to change api to empty when calling your backend service
10 }
11}
12
13# when you run use
14
15ng serve --proxy-config proxy.conf.json