title: Passing authorization header for images src to remote server in Ionic page
body: <p>I have an Ionic app where it fetches the data from remote server and displays it on Ionic html page.</p>
  
  <p>The remote URL is like this:</p>
  
  <p><a href="http://foo.com/api/content/1" rel="noreferrer">http://foo.com/api/content/1</a></p>
  
  <p>This will give me a JSON object of "content" and will be used further in the html page of Ionic app.</p>
  
  <p>It is being used like this on html page inside Ionic app:</p>
  
  <pre><code>&lt;div class="article-desc"&gt;
    &lt;p [innerHtml]="myObject?.Body"&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>"myObject" is the JSON object of response received from the server.</p>
  
  <p>The "Body" field contains the HTML to be displayed in the paragraph. This "HTML" field is being returned from server only along with the entire "content" object.</p>
  
  <p>"Body" field can have content like this:</p>
  
  <pre><code>&lt;p&gt;blah blah &lt;img src="http://foo.com/image/1"/&gt; blah blah &lt;img src="http://foo.com/image/2"/&gt;blah blah blah &lt;/p&gt;
  </code></pre>
  
  <p>You can see from the above example that the images are there in that html.</p>
  
  <p>I have no issue rendering the html from that field to Ionic Page.</p>
  
  <p>I have one issue here that my images are not being rendered there.</p>
  
  <p>Here is why..</p>
  
  <p>My app is locked for Guest users so for each request I need to send an Authorization header in order to authenticate it and in this case all the images are not able to render because each image request will be treated as guest here for server.</p>
  
  <p>Can you suggest a common place where all my images and other sources like there in html should pass through and can send authorization header along with it to server.</p>
  
  <p>I already have the Authorization Token in local storage item.</p>
  
  <p>My goal is to send authorization header to each external source (image here) present in that Body field when it renders in Ionic app.</p>