title: Get Request work in postman but doesn't work in browser
body: <p>I have web application that uses <code>Angular7</code> in client side and <code>CakePHP</code> in <code>Api</code>
  I was using <code>Basic Authentication</code> then I replace it with <code>Token Authentication</code> all request work fine, except one which works fine only in <code>Postman</code> but in browser it's weird because it seems that there is issue with authentication but couldn't know the reason.</p>
  
  <p>The request should return a blob to download the file, so I use <code>FPDI</code> in <code>CakePHP</code> to return <code>pdf</code></p>
  
  <p>Here is request in postman</p>
  
  <p><strong>Postman Header</strong></p>
  
  <pre><code>Date →Wed, 15 May 2019 12:02:44 GMT
  Server →Apache/2.4.33 (Win32) OpenSSL/1.0.2n PHP/5.6.35
  X-Powered-By →PHP/5.6.35
  Content-Disposition →inline; filename="doc.pdf"
  Cache-Control →private, max-age=0, must-revalidate
  Pragma →public
  Access-Control-Allow-Origin →*
  Keep-Alive →timeout=5, max=100
  Connection →Keep-Alive
  Transfer-Encoding →chunked
  Content-Type →application/pdf
  </code></pre>
  
  <p><strong>Postman Body</strong>
  <a href="https://i.stack.imgur.com/MD1D9.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/MD1D9.jpg" alt="Postman Body"></a>
  <strong>Request on Chrome</strong>
  <a href="https://i.stack.imgur.com/BbrKB.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/BbrKB.jpg" alt="Request on Chrome"></a>
  <strong>Working request using Basic Auth</strong>
  <a href="https://i.stack.imgur.com/s0iX8.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/s0iX8.jpg" alt="Working request using Basic Auth"></a>
  <strong>using FireFox</strong></p>
  
  <p><a href="https://i.stack.imgur.com/wHQNk.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/wHQNk.jpg" alt="using FireFox"></a></p>
  
  <p><strong>Call request</strong></p>
  
  <pre><code>    getWorkListPdf(id: number, cem_id?: number) {
      let uri = `${this.workSessionsUrl}workList/${id}`;
      let params = new HttpParams();
      if (cem_id) {
        params = params.set('cemetery_id', cem_id.toString());
      }
      const Auth = localStorage.getItem("AuthenticationToken");
      let header = new HttpHeaders();
        header = header.append("AuthenticationToken", Auth);
      return this.dataService.get(uri,{ headers: header, params: params, responseType: 'arraybuffer'  })
      .pipe(
        map(res =&gt; {
                    return res;
                  }
        )
      );
    }
  </code></pre>
  
  <p>Any help is much appreciated!</p>