Re:JSON Web Tokens vs. Sessions
by jastanton on Sunday June 19, 2016 @12:31PM
(#11933503)
This article talked a bit about putting them in cookies:
As far as putting something in the header, if you're using javascript check out superagent. It's as easy as:
or the latest http fetch api just do:
[ Parent
| on HN ]
You can also supply an options object (including headers) as the second argument[1].
[1]https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch...