title: PDF is not downloading on Chrome localhost and Safari
body: <p><strong>PDFHelper.cs</strong></p>
  
  <pre><code> byte[] bytes = memoryStream.ToArray();
                  memoryStream.Close();
                  HttpContext.Current.Response.Clear();
                  HttpContext.Current.Response.AddHeader("content-length",                     bytes.Length.ToString());
                  HttpContext.Current.Response.ContentType = "application/pdf";
                  HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=Report.pdf");
                  //HttpContext.Current.Response.ContentType = "application/pdf";
                  HttpContext.Current.Response.Buffer = true;
                  HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
                  HttpContext.Current.Response.BinaryWrite(bytes);
                  HttpContext.Current.Response.End();
  </code></pre>
  
  <p><strong>LoginFactory.js</strong></p>
  
  <pre><code>        factory.getPDFReport = function (data) {
          var headers = { 'Content-Type': 'application/pdf;' };
          var url = hostUrl + '/ReportsController/PDFReports';
          return $http.post(url, data, headers).then(
             function (results) {
                 return results;`**enter code here**`
             });
      }
  </code></pre>
  
  <p>This is my code but it is not working for Chrome localhost and Safari browsers.</p>