I have a Spring Boot 1.5.12 application and CSRF protection is enabled as default. I use the CSRF token when I submit my POST request.
However, there are some URLS that needs to be fetched via a GET requests, with cookie information but does not require a CSRF token i.e.
<a href="/stuff"><i class="stuff-xs"></i><span>Stuff</span></a>
How can I force my Spring Boot application which requires a CSRF token for such requests too?
PS: I've some comments about CSRF protection not needed for GET requests. However, it should be protected for it too: https://www.acunetix.com/websitesecurity/csrf-attacks/