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

Ionic HTTP Post v. Angular HTTP Post

$
0
0

Looks like the proxy perhaps was not setup correctly as you are still getting the CORS error. Setting up the proxy was a bit confusing in my opinion. Basically what you will be doing is calling your API using the localhost:8100/proxypath, then the proxy will redirect that to the actual API location.

As an example:

"proxies": [
{
  "path": "/api",
  "proxyUrl": "https://apiurl.azurewebsites.net/"
}],

Then in your application, you would call your api with localhost:8100/api.

Hopefully this helps.
Bob


Viewing all articles
Browse latest Browse all 228595

Trending Articles