Our company has exposed some rest api’s using iisnode in windows server. I tried to consume them and they worked fine in android environment, But when i try to use it in ios it does not execute my post request at all and directly gives me the error.
I found out the error which was displayed in safari developer console is
“Failed to load resource: Preflight response is not successful”
After digging with the help of this issue I found out that $http post of angularjs doesnt work in ios and we should use native cordova http.
So i went to this link https://github.com/silkimen/cordova-plugin-advanced-http
and installed the plugin. When i injected the dependencies in to the angular module the app screen turn blank and it throws me an error something like this below
“Failed to instantiate module cordovaHTTP”
Can anyone please suggest me how do i solve this.
I really appreciate your help.