Here's Why You Would Want Your iPhone to Talk in Your Own Voice
While the order you turn off these devices isn't important, the order that you turn them back on is.In general, you want to turn devices on from the outside-in. If you're not sure what that means, check out the link at the beginning of this step for a complete tutorial.
When you call the API as you did, you will make the request to the same source of your web application, so when you call this route, instead of calling your API route, you are calling a route of your own web app.
To fix that, you need to check in which port your API is running and do one of the following:
In your root dir: proxy.json
{
"/api": {
"target": "http://localhost:9000",
"secure": false
}
}
return this.http.get('http://localhost:[SERVER_PORT]/api/code/codes/');
If you don't have CORS configuration on your server, you might need to configure it, because you are going to make a call to your API from a different domain. If you are using node.js with express check this link.