title: Ajax call when open a new windows
body: <p>When a user click a button, I generate a pdf who open in a new tab.</p>
  
  <pre><code>$("#memberContractPrintReport").on('click', function (e) {
      var url = prepareParamUrl($('#contractReportTableResult'));    
      window.open(getHostName() + "/report/document/contracts" + url, 'MemberContractReport');
  });
  </code></pre>
  
  <p>Server changed its security policy. All url need authorization.</p>
  
  <p>In a ajax call I add</p>
  
  <pre><code>headers: {
      "Authorization": "Basic " + $.cookie('user-authorization')
  }
  </code></pre>