URLs and paths defined under proxies in ionic.config.json are not being loaded when testing application in browser using ionic serve.
here’s my proxy setting,
[INFO] Starting app-scripts server: --port 8100 --p 8100 --livereload-port 35729 --r 35729 --address localhost - Ctrl+C
to cancel
[15:39:47] watch started …
[15:39:47] build dev started …
[15:39:47] clean started …
[15:39:47] clean finished in 21 ms
[15:39:47] copy started …
[15:39:47] transpile started …
[15:39:54] transpile finished in 6.83 s
[15:39:54] preprocess started …
[15:39:54] deeplinks started …
[15:39:54] deeplinks finished in 295 ms
[15:39:54] preprocess finished in 299 ms
[15:39:54] webpack started …
[15:39:55] Proxy added:/api => http://example.com/api
[15:39:55] copy finished in 7.96 s
[15:40:11] webpack finished in 16.23 s
[15:40:11] sass started …
[15:40:16] sass finished in 5.21 s
[15:40:16] postprocess started …
[15:40:16] postprocess finished in 87 ms
[15:40:16] lint started …
[15:40:17] build dev finished in 29.47 s
[15:40:20] watch ready in 32.48 s
[15:40:20] dev server running: http://localhost:8100/
{
"name": "erabell",
"integrations": {
"cordova": {}
},
"type": "ionic-angular",
"integration": {
"cordova": {}
},
"proxies": [
{
"path": "/wc-api/v3/products",
"proxyUrl": "http://localhost:8100/wc-api/v3/products/endpoint"
}
]
}
here is my ionic.config.json file code,but i steel face an error.please tell me where is the error