Search code examples
cordovaweinre

Debugging phonegap app with weinre with https


My index.html is fetched from the server through an https connection (otherwise I have problems with the oauth procedure).

But the address for the weinre target code is http and not https, therefore for security reasons the browser doesn't load it (at least on desktop chrome, but I assume the same will happen for the inapp browser - is this right?)

How do I solve this?


Solution

  • Since you control the access restrictions on phonegap, adding

    <access origin="http://192.168.1.100" />

    to the config.xml solves this.

    (Where the ip address is my debugging computer local network address)