Django CSRF Framework having many failures

后端 未结 4 563
逝去的感伤
逝去的感伤 2021-02-04 18:48

I\'m getting many failures from the CSRF Django middleware on my site (the version from SVN trunk.) The only errors I get are: CSRF failure: reason=CSRF token missing or incorr

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 19:29

    A CSRF error should happen when the middleware successfully stops a Cross Site Request Forgery attack. Probably the best way to verify that this is the case it to check your web server logs and you should see requests that aren't related to an earlier request.

提交回复
热议问题