开发者

Why do I get a 403 error while accessing a wap django application with csrf middleware enabled?

开发者_StackOverflow中文版

Any ideas? When accessing from desktop browser it's all ok.


Perhaps your WAP browser does not support cookies? Cookies are required for CSRF middleware to work. If you intend to primarily target browsers like that, you might consider either using @csrf_exempt for WAP-accessible views or disabling the middleware.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜