I am trying to develop a hybrid application using ionic and angularjs and for this I am testing in the browser.
When I do ionic serve
it creates a local server with the address localhost:8100/#/main
and my webservice is also in localhost on port 80.
When I try to do some ajax request for this webservice Firefox returns me the message:
Blocked cross-origin request: Same Origin Policy prevents reading of the remote resource in
http://localhost/AppPanel/users/doLogin.json
. (Reason: CORS 'Access-Control-Allow-Origin' header is not present). '
I tried to disable this check in Firefox like this: about:config -> security.fileuri.strict_origin_policy -> false
but I could not get results yet. I made my webservice in CakePHP.
How do I solve this problem?