i don't understand where i am wrong .
ps. already try to fix by this answer but still not working
Angular-CLI proxy to backend doesn't work
Configure Angular-cli proxy for custom headers in request to backend?
Angular-CLI proxy doesn't work
ng serve --proxy-config proxy.config.json
** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
10% building modules 3/3 modules 0 active[HPM] Proxy created: /api ->
http://localhost:1234
[HPM] Subscribed to http-proxy events: [ 'error', 'close' ]
package.json
{
"name": "budget",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config proxy.config.json",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
proxy.config.json
{
"/api": {
"target": "http://localhost:1234",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}
Angular CLI: 6.1.2
Node: 10.8.0
OS: darwin x64
Angular: 6.1.1
npm -v 6.2.0