Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
8 Views

Connect webservice https(port 443)

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
Tags (2)
0 Kudos
1 Reply
Highlighted
New Contributor I
8 Views

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 Kudos