Spring Security Problem Cannot Use Method POST

I have expirenced this problem when I was developing my web application using that framework.After I searched on google, I found the solution in stackoverflow.The solution is :

You need to add the following parameter to the end of your action form :



As an example here :



If you don't use enctype="multipart/form-data" for your form, you can use the following input :

<input type="hidden" name="${_csrf.parameterName}"
                                        value="${_csrf.token}" />


Steven Gunanto

Popular posts from this blog

How to restart the app with flutter Android and iOS

Missing system image Android Studio solution

How to have ConstraintLayout inside ScrollView and ScrollView inside ConstraintLayout Android