“No Content-Security-Policy meta tag found.” error in my phonegap application

后端 未结 6 704
再見小時候
再見小時候 2020-11-27 10:28

After update Cordova 5.0 in my system, I create new applications. When I tested my application on a device that time I get an error in the console log:

No Co         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 10:35

    There is an another issue about connection. Some android versions can connect but some cannot. So there is an another solution

    in AndroidManifest.xml:

    
            ...
        

    Just add 'android:usesCleartextTraffic="true"'

    and problem solved finally.

提交回复
热议问题