title: GET image from authenticated route
body: <p>I have a working image-upload front/back-end code working. Now I would like to be able to GET the image from server after it is uploaded.</p>
  
  <p>The problem is that the images must be behind an authenticated route, where user has to pass jwt token in header or body.</p>
  
  <p>When i try to fetch the image like this:</p>
  
  <pre><code>fetch(imageURL, {
      method: 'GET',
      headers: {
          'x-access-token': localStorage.getItem('token')
  }
  </code></pre>
  
  <p>I just get a Form object as the response:</p>
  
  <pre><code>&lt;img alt="Your pic" src="[object FormData]"&gt;
  </code></pre>
  
  <p>Would there be some way to get the image into HTML 'img' tag other than just pasting the url in 'src' attribute, since it leads to <code>401 (Unauthorized)</code></p>