-2👍
If you are using the @csrf_protect decorator in your views try using the @csrf_exempt decorator instead.
Before views.py:
from django.views.decorators.csrf import csrf_protect
@csrf_protect
def view(request):
# Render Something
After views.py:
from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
def view(request):
# Render Something
Sorry for the late Reply.
Better late than never I hope.
Source:stackexchange.com