hi i am trying to post the data to another domain using $http.post i found the cors error in my console. But the cors was enabled on both sides. can any one help me out how to fix this problem and how to post the data to different server without cors issue. i am using ubuntu and i am getting two errors here
2.XMLHttpRequest cannot load http://somedomain/api/login. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost’ is therefore not allowed access.
You can use the Ionic proxy feature to get around CORS while you develop. This does not solve it for production apps though, since they won’t be running with ionic serve.