javascript - How does axios resist XSRF (cross-site request forgery) and what is the principle?
巴扎黑
巴扎黑 2017-06-14 10:53:58
0
1
922


The original article also mentioned how to resist cross-site request forgery

巴扎黑
巴扎黑

reply all(1)
过去多啦不再A梦

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!