Phonegap: Source URL is not in Whitelist

前端 未结 4 1790
萌比男神i
萌比男神i 2021-01-06 13:22

I am trying to get PhoneGap 2.4.0 FileTransfer working on Android 4.2.

I get a Logcat warning message saying:

The Source URL is not in white list: \'         


        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-06 13:43

    It should work if you change your XML to:

    
    

    This white-lists basically the entire internet. If you only want to white-list your domain, use something more specific. See details here: http://docs.phonegap.com/en/2.4.0/guide_whitelist_index.md.html

    The "origin" attribute is now "uri".

提交回复
热议问题