Reputation: 2094
I am new to jwt and after going through some articles I came to an understanding that we can store our jwt in a cookie and the session can still be stateless.Is that right ?, Also as regard to csrf attacks because when using cookies we can be prone to csrf attacks we have anti-forgery to solve the issue of csrf. Now my main question- Im not sure if this is correct but ,are there some particular disadvantages to using cookies to store jwt when you are implementing CrossOrigin for your controllers , that is a scene where my server app is located in a different place and we are calling the api from it in our client app which is located say in another city ? Isnt that why many webservice providers refrain from using cookies?
Upvotes: 0
Views: 88
Reputation: 130
I hope it helps.
Upvotes: 2