I'm trying to display an image that is base64 encoded (the html is an AngularJS directive template):
<div id="iframe" ng-hide="loading"></div>
<img ng-show="loading" id="tweetLoader" src="data:image/gif;base64,R0lGODlhIAAgAPYAAP///wAAAP...AAAAAA==" >
<div class="error" ng-show="errorMessage">{{errorMessage}}</div>
I removed part of the base64 code since it's very long, if it's absolutely needed, I'll add it.
Chrome (in firefox this doesn't happen) shows me the following error:
XMLHttpRequest cannot load image/gif;base64,R0lGODlhIAAgAPYAAP///wAAAP...AAAAAA==. Cross origin requests are only supported for HTTP.
Also, this error isn't showed every time.. It seems pretty random.
I'm using AngularJS 1.2.21
Is it a chrome bug or something?
Thanks.