I installed the Ionic development environment using the Joman generator ( https://github.com/diegonetto/generator-ionic ). Everything works well.
The problem is the request on the Sever side, I get an error with the request for cross-request.
I am adding the link below to the .htaccess file and AngularJS app.js, still getting the same error
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers: Authorization
AngularJS Provider
$httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=utf-8';
$httpProvider.defaults.withCredentials = true;
The error message I get is
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at
http:
This can be fixed by moving the resource to the same domain or enabling CORS.
Request and Response Screen

Please indicate which configuration must be changed to enable CORS. Our server side structure - Zend 1.x
Muthu source
share