I\'m trying to make an ajax call to my Spring controller/action with POST method, and return an object from the server with @ResponseBody. The strange situation is that it s
In my case, with same problem, helps this:
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
headers: {"X-CSRF-TOKEN": $("meta[name='_csrf']").attr("content")}
P.S. Thanks to Illya Shulgin, cool ansver, now it here.