AJAX Request from Phonegap Android fails

前端 未结 3 351
Happy的楠姐
Happy的楠姐 2020-12-02 20:50

I have been working on this for the last two days, and looking at a lot of other suggestions. Yes I can get this simple ajax request to work from within a phonegap applicati

3条回答
  •  无人及你
    2020-12-02 21:19

    additionally to the whitelisting, make sure the cors flag is true to enable cross origin resource sharing.

    $.support.cors=true;
    

    please find the reference here

提交回复
热议问题