Getting CSRF-TOKEN from a drupal 8 website.

Getting a token from a drupal 8 website is easy. You can get it by visiting the following link.


This will return the token. This token is mainly used to validate  that the requests are coming from the actual users of the site. This is widely used for the forms which are tied to the user's sessions. This token is validated at the server side. This is one way of protecting against Cross-Site Request Forgery.