cordova - Ionic: Connection to server was unsuccessful -
when try run ionic app in emulator or device. following error:
the connection server unsuccessful (http://192.168.0.8:8100)
however, works alright in browser through ionic serve
.
i hope not due content security tag
or cordova whitelist plugin
settings follows:
<meta http-equiv="content-security-policy" content="default-src *; style-src 'self' 'unsafe-inline'; script-src * 'unsafe-inline' 'unsafe-eval'"> <allow-navigation href="http://*/*"/> <access origin="*"/>
possible issues:
check if device under same wi-fi.
check if firewall not blocking 8100 , 35729 ports.
check following tags:
<content src="index.html"/> <access origin="*"/> <allow-navigation href="http://ionic.local/*"/> <allow-navigation href="*"/> <allow-navigation href="http://192.168.0.8:8100"/> <allow-intent href="http://*/*"/> <allow-intent href="https://*/*"/>
Comments
Post a Comment