阅读背景:

如果没有启用cookie,我应该如何使用django的CSRF处理ajax / jquery POSTS?

来源:互联网 

Django requires it so ajax posts to the server require CSRF protection. But CSRF requires cookies to be enabled or django will 404 the request. Assuming that nobody has cookies enabled, how should I handle my ajax posts? I don't want to use the @exempt_csrf decorator for security issues.Django requires it so ajax posts to the server




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

分享到: