With the release of cordova-ios 6.0.0, WKWebview is the default web view now. It works well for API calls with a single host. However, it doesn't seem to support multiple hosts at the same time. I needed to configure it such that it supports my company domain xxx.com as well as localhost.
The following preferences works well if applied separately for the respective domains. But not both at the same time. The issue I'm noticing in this case is, the API calls are not attaching the SESSION cookie in the request header.
<preference name="hostname" value="localhost" />
<preference name="hostname" value="xxx.com" />
I've following property enabled as well.
$httpProvider.defaults.withCredentials = true;