TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Terry Vail
NA
23
784
Cordova iOS app AJAX POST to SSL fails
Apr 25 2018 4:31 PM
We’ve developed a Cordova app in Visual Studio 2017 which communicates with a WebAPI 2.0 RESTful service. The Android app successfully communicates with the server, but the Apple iOS app fails with an error code of 0. The server has a valid certificate and tests from https://www.ssllabs.com/ssltest/index.html show that TLS 1.2 is in place and will be used for Apple Transport Security. We have logging in the API and it appears that the Apple app does not enter the API at all. There is also nothing in the IIS logs showing that a POST was made to the server.
Here’s a code snippet…
$.ajax({
type:
"POST"
,
url: webService +
"Login/"
,
contentType:
"application/json; charset=utf-8"
,
data: JSON.stringify(loginViewModel),
dataType:
"json"
,
crossdomain:
true
,
async:
true
,
headers: {
'X-Requested-With'
:
'XMLHttpRequest'
}
})
.done(
function
(incomingUserData) {
// Load the user's home page
loadMainPage();
endBusy();
})
.fail(
function
(jqXHR, textStatus, errorThrown) {
// throw an error
});
Any help is greatly appreciated.
Reply
Answers (
0
)
Voice recorder and playback in Xamarin.Forms
Button Click work for Splach screen in Xamarin.Forms