title: How to attach jwt token on every page after successful authentication?
body: <p>I followed <a href="https://github.com/szerhusenBC/jwt-spring-security-demo" rel="nofollow">this</a> code and implemented the jwt authentication successfully. I am using this authentication in my web application. I am able to get the token on the login page. After that how to attach that token to the header of all the subsequent requests.  I stored the token in local storage, but when I navigate to next page after successful login before js loads, the page getting loaded with 401 error. </p>
  
  <p>How should I achieve this?</p>