title: pass authentication header to image requests in iframe
body: <p>I am sure that title of my question doesn't makes much sense, but i couldn't think better now.</p>
  
  <p>Problem: My main task is to show <strong>all pages</strong> of a SSRS report in a popup inside one of the pages of a ASP.NET MVC application.</p>
  
  <p>To achieve this I used below approach:</p>
  
  <ol>
  <li>Add a jQuery popup in MyPage.cshtml(i need report contents inside this popup)</li>
  <li>When this popup opens(on some client action), I make a jquery ajax request to second page proxyPage.aspx</li>
  <li><p>On proxy page I make a webrequest to reportserver with network credentials and get report html</p>
  
  <pre><code>    WebRequest request = WebRequest.Create( "http://MyReportServer/ReportServer?/ MyReportName&amp;rs:Command=Render&amp;rs:Format =HTML4.0&amp;rc:Toolbar=false&amp;Param1=blabla123");
      request.Credentials = new NetworkCredential(MYUSERNAME, MYPASSWORD);
      HttpWebResponse response = (HttpWebResponse)request.GetResponse();
      Stream receiveStream = response.GetResponseStream();
      StreamReader readStream = new StreamReader(receiveStream, System.Text.Encoding.UTF8);
      string str = readStream.ReadToEnd();
      Response.Write(str);
  </code></pre></li>
  <li><p>HTML from proxyPage I write in a div inside popup or using iframe to show full proxy page inside it.</p></li>
  <li><p>Till here things go well and thereafter I get yet another problem for which I am writing this question</p></li>
  <li><p>When report's HTML gets rendered in popup it makes request to report server to retrieve images embedded in report. </p></li>
  </ol>
  
  <p>Since these requests to report server doesn't send network credentials as I did in step 3, I get prompt for entering credentials. </p>
  
  <p>I need a approach through which these image request may somehow get authenticated by credentials that I have already supplied earlier.</p>