简体   繁体   中英

HTTP Status 403 - Bad or missing CSRF value

While I'm submitting the form I'm getting the error page(HTTP Status 403 - Bad or missing CSRF value), and in the form if I give method as "get" it is working fine. When I give "post" as method it is showing above error (even it is not entering in to the controller). Please give me the solution for it.

<form action="${request.contextPath}/cart/voucher" method="post">
<input type="text"  name="voucher"/>
<input type="submit" value="redeem"> 
</form

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM