title: JQuery send Ajax GET with Headers and open in new Window/Tab
body: <p>I am sending an AJAX GET request where some header parameters are passed. Not URL parameters but headers in the following way:</p>
  
  <pre><code>$.ajax({
           url: "http://localhost/myendpoint/ABCDE-12345",
           headers: { 'X-Auth-Token' : myTokenId},             
           type: "GET",
           success: function() { 
  
                    }
           });
  </code></pre>
  
  <p>This endpoint returns a file but it requires authentication via OAuth token passed into the headers of the request. 
  When the request is returned I should display the returning file into a new Tab/Window of the browser. Is this possible?</p>
  
  <p>Without authentication we can send the request in this way and it works:</p>
  
  <pre><code>window.open('http://localhost/myendpoint/ABCDE-12345', '_blank')
  </code></pre>