Tag: jade4j
-
Spring Security – Fixing Non-Thymeleaf _csrf Variable to make CSRF work again đ
In non-Thymeleaf projects (in my case pug4j), _csrf is not automatically implemented and included in the template variables. I had some trouble finding how to do it but the solution was in this paragraph: If these options are not available, you can take advantage of the fact that the CsrfToken is exposed as an HttpServletRequest attribute named _csrf. The following…