Check profile picture ussing angularjs


I’m trying to connect with the angularjs method $http to check if the profile image of the user I have in my database have changed or not, in order to show a default image or not, but I’m getting the error “No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘’ is therefore not allowed access.” what is the best way to do that?