- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- HTML5
- Intel® XDK
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page