title: JWT Token was removed from header when page refreshed, How can fix it?
body: <p>I'm using Jwt token based authentication and use Angular 7 and node.js, I want to send a POST request to the server with a Token, everything is going well, but when I reload the page I have this error on the server side:</p>
  
  <p><img src="https://i.imgur.com/NSfUs9G.jpg" alt="server error"></p>
  
  <p>I have this node.js code in the middleware :</p>
  
  <pre><code>router.all('/*', function (req, res, next) {
  
      let tok = '';
      tok =  req.headers["authorization"].split(' ')[1] ||  req.headers["authorization"];
  
      jwt.verify(tok, secureKeyToken, (err, token) =&gt; {
          if (err) return console.log('NO TOKEN! VERIFY');
          res.locals.token  = token;
          next();
      });
  });
  </code></pre>
  
  <p>And I have this code in the Angular :</p>
  
  <pre><code>httpOptions = {
    headers: new HttpHeaders({
      "authorization": this._token.tokenGetter() || ''
    })
  };
  
  
  reloadVorlage(id){
  
    let endpoint = this.HOST_TURL + '/vorlag/go' // get one
  
    return this.httpClient.post(endpoint, {id},this.httpOptions)
    .pipe(catchError(this.errorHandler));
  }
  
  </code></pre>
  
  <p>The question is, why does the token disappear when i reload the page? and how do I fix it ?</p>
  
  <p><b>My English is weak, forgive me.</b></p>