XMLHttpRequest and Phonegap… Same Origin Policy or not?

前端 未结 1 1533
渐次进展
渐次进展 2021-01-02 16:06

I\'m still new to Phonegap and I am working with the Android SDK for some days now. At least I wanted to do a XMLHttpRequest to get data from my server. I knew

1条回答
  •  佛祖请我去吃肉
    2021-01-02 16:24

    Yes, people are correct the Same Origin Policy is needed only in webApps not hybrid phonegap apps.

    You need to check you domain whitelist, just check it in the config.xml in res --> xml folder.

    For accessing xml web services you need to ensure your soap message is correctly formed. try to catch the exact error.

    0 讨论(0)
提交回复
热议问题