Not recieving any cookie on client side
leoank opened this issue · comments
Ankur Kumar commented
Hey, I am trying to use this crate to implement a cookie based auth system in my actix web server. However, using the example in the README, I am not recieving any cookie headers on the client side. Is it the intended behaviour or am i missing something?
Ankur Kumar commented
For anyone who is facing the same issue, you have to use the HttpRequest.session().set()
method in your route handler to generate cookie. You can also create a middleware which can do this for every request.