title: Preview pdf with http headers
body: <p>I'm trying to preview a pdf in the browser with just this HTML code:</p>
  
  <pre><code>&lt;div class="col-xs-12 clearfix"&gt;
      &lt;object width="100%" height="600px" data="&lt;%- model.pdf %&gt;" type="application/pdf"&gt;
          &lt;p&gt;It appears you don't have Adobe Reader or PDF support in this web browser. &lt;a href="&lt;%- model.pdf %&gt;"&gt;Click here to download the PDF&lt;/a&gt;. Or &lt;a href="http://get.adobe.com/reader/" target="_blank"&gt;click here to install Adobe Reader&lt;/a&gt;.&lt;/p&gt;
          &lt;embed width="100%" height="600px" src="&lt;%- model.pdf %&gt;" type="application/pdf" /&gt;
      &lt;/object&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Where model.pdf is an url that I generate to request it from there.</p>
  
  <p><strong>The problem:</strong></p>
  
  <p>I'm working in a full javascript/fe project that is consumer of an API. As client, I need a token and some more things to request data from the API that I have to set in the headers of every call. </p>
  
  <p>So what I need is, somehow to set those headers somewhere.</p>
  
  <p><strong>My question:</strong></p>
  
  <p>Is is possible?</p>
  
  <p>Thanks in advance.</p>