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 123 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!
Similar QuestionsMore questions about Ionic
1
Ionic is a front-end HTML5 framework.1
How to store data in Ionic1
Create an Ionic app that loads items when the user scrolls down and displays items when the view loads.1
How to check if the device is connected to the internet in Ionic0
Ionic is a framework that allows you to build mobile applications using HTML, CSS, and JavaScript.