PhoneGap的是否支持HTTPS Ajax请求? [英] Does PhoneGap Support HTTPS ajax requests?

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

问题描述

我在那里的HTML / JavaScript的code在独立浏览器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协议处理证书错误。最后我写我自己的code,以建立与服务器的初始连接而忽略了证书错误

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

这里是code <一href="http://blog.clearlyinnovative.com/post/1012434483/phonegap-and-iphone-development">http://blog.clearlyinnovative.com/post/1012434483/phonegap-and-iphone-development

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

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