Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

csrf token exempt django

from django.views.decorators.csrf import csrf_exempt

@csrf_exempt
def xyx(request):
  #your code
  
#this makes the function accept post request without csrf token
#use it just for quick check or for operations where csrftoken authentication
#isn't required
 
PREVIOUS NEXT
Tagged: #csrf #token #exempt #django
ADD COMMENT
Topic
Name
6+7 =