I need to store cookies for my http requests in my app so I set $httpProvider.defaults.withCredentials = true;
However, upon setting this I got an error when doing http requeust:
A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://localhost:8100' is therefore not allowed access.
I believe this error will not show on devices but I want to debug the app using my pc's web browser. I tried to configure my config.xml and setting access origin to localhost:8100 but it doesn't work either.
I'm also using Chrome's Allow-Control-Allow-Origin: * but no luck too.