Added csrf thymeleaf examples

This commit is contained in:
2021-02-18 13:53:38 -05:00
parent 5055af0c7e
commit a3d8b844f0
2 changed files with 15 additions and 0 deletions

4
csrf.html Normal file
View File

@@ -0,0 +1,4 @@
<!--This is an example of manual csrf token inclusion using thymeleaf-->
<meta name="_csrf" th:content="${_csrf.token}">
<meta name="_csrf_header" th:content="${_csrf.headerName}">
<meta name="_csrf_name" th:content="${_csrf.parameterName}">