In our AngularJS app I have an image URL like:
http://example.com/images/get/785746378
The issue is this redirects me to another URL which blocked:
http://another-example.com/images/f/gs/s/your-image.jpg
So the image is not working, but if I replace the domain so it's:
http://example.com/images/f/gs/s/your-image.jpg
It works fine.
So I want to be able to ping the URL in JavaScript and find out what the redirected URL is and change the domain so it works before adding it to my img src