Issue
I'm working on a angular web project where I have a angular site which communicates with a web api that uses a SQLlite database.
as I am new to angular, now I'm encountering a error where request are sent to the wrong port even though my proxy config is set to the api's port , where do I set the proper routing for traffic between my site and api/database.
The error I'm encountering while sending request:
Http failure response for http://localhost:4200/api/Account/AuthenticateUser: 404 Not Found
my proxy config:
{
"/api": {
"target": "http://localhost:44366/",
"secure": false,
"changeOrigin": true,
"logLevel": "debug"
}
}
sqllite: enter image description here
Note: I'm continuing work from a pre existing project
Solution
This problem was fixed by running the app in visual studio in release mode instead of debug mode
Answered By - Hrvoje
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.