Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

forbidden (csrf cookie not set.) django rest framework

from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
def sampleFunction(request,**kwargs):
	response = "print("hi")"
    return response
 
PREVIOUS NEXT
Tagged: #forbidden #cookie #django #rest #framework
ADD COMMENT
Topic
Name
1+6 =