阅读背景:

Django + jQuery: Why CSRF verification fails on multiple simultaneous requests

来源:互联网 

I've encountered the following situation (using Django1.4 and jQuery 1.7.1) which I would like to understand: I submit a form via jQuery 'ajax' function and before this request finishes I click another element which submits the same form but using the jQuery 'submit' function. The response I get - 403, CSRF verifcation failed. Now, of course, to prevent this error it suffices to disable multiple simultaneous submits(they work fine on their own), but this doesn't help to understand where that specific error comes from.I've encountered the following situation (using




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: