Hard
Imagine an application that connects to an API. You launch your application in the browser with ionic serve.
Here is the result of the request to the API:
XMLHttpRequest cannot load http://api.ionic.com/endpoint. No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8100' is therefore not allowed access.
How to solve this error?
Author: Benjamin CanacStatus: PublishedQuestion passed 130 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
1
Create an Ionic app that loads items when the user scrolls down and displays items when the view loads.1
Explain the benefits of using a ViewContainerRef in Ionic1
How to check if the device is connected to the internet in Ionic0
Ionic is a framework that uses AngularJS.1
How to store data in Ionic1
Ionic is a front-end HTML5 framework.1
Get the current position of the user in Ionic using the cordova plugin *cordova-plugin-geolocation*