Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ionic serve: proxy gives me 404 on request

$
0
0

I am trying to set up my proxies in Ionic, but so far I only get a 404 when hitting the localhost address.

This is my ionic.project:
{
"name": "MyApp",
"app_id": "",
"gulpStartupTasks": [
"sass",
"watch"
],
"watchPatterns": [
"www/**/*",
"!www/lib/**/*"
],
"proxies": [
{
"path": "/rest",
"proxyUrl": "https://www.myapi.com/rest"
},
{
"path": "/SignInEmail",
"proxyUrl": "https://www.myapi.com/SignInEmail"
}
]
}

When I run ionic serve, it shows that the two proxies where added "/rest => https://www.myapi.com/rest"

Yet, when I do a $http.get("/rest/something") it gives me a 404 http://localhost:8100/rest/something not found

Can anyone help?


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>