Cookie vs localStorage (Web Storage API) for Authentication Tokens
It is often discussed where should one store authentication or other sensitive tokens – in cookies or localStorage? I think either of the two can be chosen as long as one understands the differences between them across certain aspects like storage, communication, cross-site and cross-origin access and security. Note: We will not consider using sessionStorage […]