title: Get X-CSRF-TOKEN in Angular 2
body: <p>I use the standard way of using X-CSRF-TOKEN in Angular 2 like this in my app.module:</p>
  
  <pre><code>provide: XSRFStrategy, useValue: new CookieXSRFStrategy('CSRF-TOKEN', 'X-CSRF-TOKEN')
  </code></pre>
  
  <p>I am using "primeng" for file-upload. I need to set up the token by my self like this:</p>
  
  <pre><code>private onBeforeSend(event) {
       event.xhr.setRequestHeader("X-CSRF-TOKEN", tokenThatINeed);
  }
  </code></pre>
  
  <p>I need that token that Angular2 has generated for me. I don't know how to access the token.</p>