In this video, I will share with you guys how to implement Logout link in a Spring Boot application without disabling CSRF token generated by Spring Security. A Logout hyperlink is easier to blend with the user interface, as opposed to a button.
In Spring Security, you can use a logout link if you disable CSRF but it is not recommended as it makes the application unsecured, that is, more vulnerable to Cross Site Request Forgery (CSRF) attacks.
So in this video, I will show you how to implement a Logout link while still enabling CSRF.