- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
- Balises:
- HTML5
- Intel® XDK
Lien copié
1 Répondre
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
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
Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable