CSRF Failure - csrf cookie not set

linkaiyi
Follow

CSRF Failure

if csrf cookie can not set and trigger csrf authentication error by django, (happens with IOS 13+)

#file: urls.py

from django.conf.urls import patterns, url
from django.views.decorators.csrf import csrf_exempt

import views

urlpatterns = patterns('',
    url('^login/$', csrf_exempt(views.LoginView.as_view())),
    ...
)
Object has 0 attachments

Was this article helpful?

This article is viewed 10 times!

Recent Viewed Articles

0 Comments

Leave a Comment

Support