• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps [Cordova] Trouble with HTTP src

Belizan

Lurker
So I am testing out some pretty basic features in a Cordova build for Android, and I've run into a strange problem that I can't seem to fix.

I have a simple image tag in SPA...

Code:
<img id="theImg" src="http://www.mysite.com/images/gears.png" alt="gears" style="float:left;"></img>

When I am on wifi, in my local subnet, this works fine. If I am outside of my local net, however, this times out after 30s (504 gateway timeout). I can load the image in a desktop browser outside of my subnet without a problem in less than a second. I have all sites whitelisted atm in my config.xml, and my server which hosts the image also returns general CORS permissions, which leaves me a bit stumped. I'm sure I've forgotten something really trivial, but for the life of me, I can't remember what it is.
 
Back
Top Bottom