title: how to access a image by localhost from same computer?
body: <p>I made a program which is used to save a image locally and the url of this image is saved in the database. While retrieving the data from the database using ajax then it will give me the urls and I will append that urls with a div class the code of ajax is given below:-</p>
  
  <pre><code>$( document ).ready(function() {
      $.ajax({
          url: "/api/v1/get-all-upload-image?sortBy=date",
          type: "GET",
          success: function(response){
              console.log(response);
              for (i= 0; i &lt; response.response.data.length; i++){
                  console.log(response.response.data[i])
                  $(".images").html('&lt;img src='+response.response.data[i].image_url+' alt="Smiley face" height="42" width="42"&gt;')
              }
          }
      });
  });
  </code></pre>
  
  <p>The Image url be like</p>
  
  <blockquote>
    <p><a href="http://localhost:8080/home/iron/go/uploads/xyz/themes/2018/12/4/1543924926ironman1537870116062544.jpg" rel="nofollow noreferrer">http://localhost:8080/home/iron/go/uploads/xyz/themes/2018/12/4/1543924926ironman1537870116062544.jpg</a></p>
  </blockquote>
  
  <p>This will show nothing but while I remove the <code>http://localhost:8080</code> then it will show the image. Can anybody please tell me why it is doing like that? And How I will access this image?</p>