2012-10-11 18 views
1

我使用Chrome和Ripple来测试我的应用程序没有任何问题。但是,如果我使用我的设备(连接到PC)或模拟器(Android)的第一请求工作正常,但第二号。Phonegap/Jquery Mobile无法通过代理连接http

我用科尔多瓦2.0

我的代码:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"     
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     <html xmlns="http://www.w3.org/1999/xhtml"> 
     <head> 
     <meta http-equiv="REFRESH" content="0;url=http://jquerymobile.com/demos/1.1.1/"> 
     </head> 
     <body></body> 
     </html> 

局域网(LAN)的配置设置 代理服务器: 地址:10.0.32.5端口:8080

请,我需要帮助来解决这个问题?

+0

您是否遵守[此域名白名单指南(http://docs.phonegap.com/en/2.1.0/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide)? – Calavoow

+0

是的,我的配置是:<访问起源=/“* ”> – pgermano

+0

为什么不'“ *”'< - - 允许所有领域,提出开发利用的仅!>? (而不是'“。*”') – Calavoow

回答

0

尝试

<meta http-equiv="refresh" content="0;URL='http://example.com/'"> 

见引号中的URL字段。

+0

它的工作!非常感谢:-) – pgermano

+0

超凡!很高兴为您提供帮助,欢迎来到StackOverflow;) –