当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - How to set the "CSRFprotect" parameter to prevent AJAX hijacking?

问题描述:

In This article the auther mentioned a way to protect from AJAX hijacking by using CSRFprotect param but I didn't understand how he set it's value ?


I would put the code here but when I do it appears inapprehensible .

网友答案:

He's intercepted the JQuery ajax events in order to add a custom querystring parameter (ie it's a custom solution, and would need to be implemented carefully on the server-side too, it's not a standard solutoin). Would probably help against a general case website infection, but not against a targeted attack.

分享给朋友:
您可能感兴趣的文章:
随机阅读: