Download cross domain image in ionic


I am trying to download an image that don’t support CORS, so $http.get(url) will fail.

XMLHttpRequest cannot load No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘’ is therefore not allowed access.

Are there anyway to download this file into javascript string in base64? since it will be fine to use tag to load it.