I've used session middleware to handle sessions in the API consumed by ios-based client. Everything was fine until I started web-based client implementation. I've noticed that cookies are not the best way to work with them in the browsers, there are some restrictions with fetching them in JavaScript. I know that is security reasonable, but anyway I need an ability to pass session id via custom header.
I've forked repository and implemented ability to pass session id via custom header with backward compatible cookies passing. Also added one test to be sure that sessions are loaded via header as well.
Not sure if I should suggest the pull request for this feature. Is this repository about only cookie-based sessions?
I've used session middleware to handle sessions in the API consumed by ios-based client. Everything was fine until I started web-based client implementation. I've noticed that cookies are not the best way to work with them in the browsers, there are some restrictions with fetching them in JavaScript. I know that is security reasonable, but anyway I need an ability to pass session id via custom header.
I've forked repository and implemented ability to pass session id via custom header with backward compatible cookies passing. Also added one test to be sure that sessions are loaded via header as well.
Not sure if I should suggest the pull request for this feature. Is this repository about only cookie-based sessions?