title: Sending JWT alongside html document in http response
body: <p>How to send the <em>JWT</em> to a client just after client has authenticated without using <em>Cookies</em> when an <em>html document</em> body is needed to be sent too?</p>
  
  <p>There are docs, blog posts, and tutorials, explaining the <em>cookie-less</em> <em>jwt</em> authentication and leveraging the use of <em>Web Storage API</em> to save the <em>jwt</em> client side. But all of them are trivial examples without sending an <em>html document</em> in http response body upon an authentication which is necessary in some real world applications I can imagine. A <em>cookie</em> can be sent in <em>cookie</em> http response header alongside with an <em>html document</em> in same response's body, I could not still come across a post explaining to do this with a <em>jwt</em> in response instead of a <em>cookie</em>. As I know there is not an API to reach the response headers from javascript in browser if one want to send the <em>jwt</em> in response headers alongside <em>html document</em> in response body.</p>