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

Unwanted trailing slash on Ionic CLI proxy

$
0
0

I'm dealing with CORS issues when developing while trying to reach an API endpoint. I've set-up a proxy via the ionic.properties so the CLI can handle the requests.

The main problem here is, the API I'm trying to access cannot respond correctly to a trailing slash that's being added by the CLI.

While my proxy config says "http://domain.com/api.asmx/method", the request is being done as "http://domain.com/api.asmx/method/" (note the trailing slash) and the endpoint responds as "method/" not found (note again the trailing slash).

Any thoughts? This looks like a bug to me.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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