Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic 3: No 'Access-Control-Allow-Origin' header

$
0
0

@mikrochipkid wrote:

I have a json file on my server : https://www.mysite.com/json/test.json

that im trying to pull in my app but im getting the:
Failed to load resource: Origin http://localhost:8080 is not allowed by Access-Control-Allow-Origin.

Now i tried Setting up the proxy urls like stated here:
https://blog.ionicframework.com/handling-cors-issues-in-ionic/

But im not sure what the URL has to be. Does it have to match the url thats getting the json file like so?:

{
  "name": "TestApp",
  "app_id": "",
  "type": "ionic-angular",
  "integrations": {
    "cordova": {}
  },
  "proxies": [
    {
      "path": "/json/",
      "proxyUrl": "https://www.mywebsite.com/json/"
    }
  ]
}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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