JWT and CSRF differences
An authentication system based on tokens (JWT or random) stored in cookies is vulnerable to CSRF attacks, because cookies are sent automatically to server in each request and an attacker could build a harmful url link to your site. https://yoursite.com/delete?something=1 To protect your site it is needed to use a CSRF token that your application … Read more