Software Archive
Read-only legacy content
17060 Discussions

Connect webservice https(port 443)

wasan_l_
Débutant
1 028 Visites
hi. i am create Mobileapp connect web service my code $.getJSON(serviceURL, function(data) { $.each(data, function(index, data_obj) { alert(data_obj.Id); }); }); this work on http but https i have response "Failed to load resource: net::ERR_INSECURE_RESPONSE " how to connect webservice https by intel xdk Please Reply Thank you
0 Compliments
1 Répondre
Mitchell_Franklin
Nouveau contributeur I
1 028 Visites

There is no issue with ajax calling HTTPS, this generally is an issue with the server you are calling, this could be because it is expecting a certificate chain to be presented to the call, the cross-origin policy is not setup properly or something else.

One way around this if you dont have access to the server or the chain is to use function JSONP which is designed to overcome the cross-domain restrictions.

You can read about it at http://api.jquery.com/jquery.getjson/ or to see a good example visit https://www.sitepoint.com/jsonp-examples/

Hope this helps

Ta

Mitch

 

 

0 Compliments
Répondre