[Fixed]-Django Ajax 403 only when Posting from custom localhost url

1👍

try with @csrf_exempt

from django.views.decorators.csrf import csrf_exempt
@csrf_exempt
def your_view(request):
    print "fff"
    print "do your things..."
👤Cadmus

Leave a comment