Secbone / koa-session2

Middleware for Koa2 to get/set session
MIT License
152 stars 30 forks source link

Possible to use without cookies? #32

Open Panoplos opened 7 years ago

Panoplos commented 7 years ago

Is it possible to get sessions working with the client without cookies? For instance, rather than using cookies in a browser-led GET, is it possible to use POST with JSON content? We have a project that we would like to release a React Native client for, and cookies are not ideal.

Secbone commented 7 years ago

@Panoplos Could you modify the headers of HTTP request? You just modify the Cookie field in request headers.