Demonstration of how we can stop Cross Site Request Forgery(CSRF) using synchronizer token pattern is given in this repo.
You will need
XAMPP
or
WAMPP
To run the demo.
To learn more about CSRF and Synchronizer Token pattern refer to https://kavintechblog.blogspot.com/2018/10/how-to-protect-from-csrf.html