Cordova httpclient call fails in IOS works fine in Android


#1

Hi,

I know this question is been asked but I could not find answer from any of existing posts,

By default I have this below setup in -info.plist

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>

And there is no wkwebview plugin installed in my project, but the call still failing. While the App able to access other static links such as images, but the web service calls are failing. Any guess?
var oDat = {
uuid: uuid
};
let headers = new HttpHeaders();
headers = headers.set(‘Content-Type’, ‘application/json; charset=utf-8’);
return this.http.post(this.apiUrl23, JSON.stringify(oDat), {headers: headers}).pipe(
map(this.extractData),
catchError(this.handleError)
);