I freshly created a new Angular 15 App, and tried to run with proxy-config property but the proxy is not deducted or not working at all.
The source code is in
https://github.com/jonesprabu/custom-form-elements/blob/main/src/proxy.conf.json
The Api call is in
Please help me in find where I am going wrong with this project?
>Solution :
with current config api call will be sent to :3333/api/students while what you want to get is just :3333/students. To achieve such behavior add pathRewrite option to the proxy config
"/api": {
"target": "http://localhost:3333",
"secure": false,
"pathRewrite": {
"^/api": ""
}
}


