I am using ionic framework and angularjs I use chrome for viewing my logs but here i am doing a login page I am trying to post the user entered data to serve but i am gettin
If you're using chrome, get "Allow-Control-Allow-Origin" plugin. This will let you ignore all CORS errors.
It works on mobile because ionic has a cordova plugin "cordova-plugin-whitelist". In your "config.xml" you'll see the line by default, that means your app can access any URL.
Unfortunately when testing through the browser the cordova plugin is not active.