Cross Site Request Forgery (CSRF)
The Attack​
Image from Christopher Makarem
The solution​
This attack can be mitigated by using a different and personalized token in each request. In nodejs, the csurf library is highly recommended.
Implementation for: