http://www.cnblogs.com/libin-... You can refer to this article. The most effective way to prevent xsrf is to add custom attributes in the request header. The attribute value is the token returned by the background (generally stored in the cookie), when the backend server accepts the request from the browser, it will get the token in the request header for comparison.
http://www.cnblogs.com/libin-...
You can refer to this article. The most effective way to prevent xsrf is to add custom attributes in the request header. The attribute value is the token returned by the background (generally stored in the cookie), when the backend server accepts the request from the browser, it will get the token in the request header for comparison.