Skip to content Skip to sidebar Skip to footer

Net::ERR_CONNECTION_REFUSED On Cordova App

As the title states, I am getting this error from chrome's remote debugging on a separate android device, when I press the login button to send a GET request using ajax call. It wo

Solution 1:

The issue is with the allow-intent configuration specified in config.xml

The config.xml has both wildcard and IP based allow-intent configurations specified. Correcting this configuration and mentioning proper IPs should make this work.


Solution 2:

For me, it was adding the following to my "Content-Security-Policy" in my index.html, the need for this seems to have arrived with a later version of cordova-android (I'm using 9.1.0 and 10.1.1)

      script-src-elem * 'self' gap: 'unsafe-inline';

Once I did this jQuery loaded from my index.html, and other libraries were loading from React within Cordova.


Post a Comment for "Net::ERR_CONNECTION_REFUSED On Cordova App"