[SOLVED] <img> with remote src gives 404


#1

I’ve been trying to add a simple placeholder to my application using
<img src="http://placehold.it/150x150">
but always ends up with a 404 and a broken image.

The problem is only present on my android device, in the browser it works as expected.

I have serached the internet for a possible solution and have found solutions including meta-tags in the index.html file and cordova-plugin-whitelist, but nothing seems to solve this.

Can someone please point me in the right direction?


#2

Solved it using this topic.

With the meta-tag described in this answer, and using ionic plugin add cordova-plugin-whitelist.