PhoneGap支持HTTPS ajax请求? [英] Does PhoneGap Support HTTPS ajax requests?

查看:170
本文介绍了PhoneGap支持HTTPS ajax请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,其中html / javascript代码在独立的浏览器safari中执行良好,但当ajax调用在PhoneGap中执行时,它们都会失败,网络错误101。

I have an application where the html/javascript code executes fine in a standalone browser safari, but when the ajax calls are executed in PhoneGap, they all fail with the Network Error 101.

我请求XML文档

推荐答案

是的。

但是,它没有使用HTTPS协议处理证书错误。我最后写了自己的代码来建立与服务器的初始连接,并忽略cert错误

BUT, it does not gracefully handle certificate errors with the HTTPS protocol. I ended up writing my own code to establish the initial connection with the server and ignore the cert errors

这里是代码
http://blog.clearlyinnovative.com/post/1012434483/phonegap-and-iphone-development a>

这篇关于PhoneGap支持HTTPS ajax请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆