android - Cordova and ajax not found rest service -
do know why when place application on mobile device , try download json, jquery mobile (ajax) returns me error 404, , if same device in browser (chrome) json response visible?
does application in cordova can block access services of rest?
cordova: 6.1.0 android-cordova: 5.1.1 device: nexus service: get
because whitelist blocks external calls on default
add plugin, if not added yet
https://github.com/apache/cordova-plugin-whitelist
and add meta tag html
<meta http-equiv="content-security-policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'"/>
Comments
Post a Comment