Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

Connect webservice https(port 443)

wasan_l_
Beginner
752 Views
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 Kudos
1 Reply
Mitchell_Franklin
New Contributor I
752 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
Reply