title: Which one is more safe local storage or cookies?
body: <p>I am developing a project using <code>Django REST API</code> (backend) and <code>React JS</code> (front end). I am using <code>Json Web token</code> for authentication. But I am confused at the point that whether should I store <code>Json Web token</code> in <code>local storage</code> or in the <code>cookies</code>? Which one is more safe and why? How big companies handle this kind of security between <code>API</code> and <code>client side</code>?</p>