I have an image on imgur. this image is displaying on any website except on localhost.
What might be the problem?
<img class="cover" src="https://i.sstatic.net/wqYLI.jpg" alt="">
Error: GET https://i.sstatic.net/wqYLI.jpg 403 (Forbidden)
Strangely, imgur is restricting to access the image directly from localhost. However if you access your localhost using IP address, you are able to see the image.
Example:
http://localhost/site (not allowed)
http://192.168.0.2/site (allowed)
This is not only for this image, but also any imgur image.