@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