Cross-domain requests using PhoneGap and jQuery doesn't work

前端 未结 5 736
夕颜
夕颜 2020-12-08 05:32

I\'m creating a PhoneGap app for Android. To get data from the (remote) server I make a REST call using jQuery\'s $.ajax() function. There are a few things you must know:

5条回答
  •  無奈伤痛
    2020-12-08 05:56

    Adding this to the config.xml saved me

    
    
    
    
    

    I was baffled as to why any outside resource did not load, even google maps and my remote debugging tool. This saved me!

提交回复
热议问题