django+ajax报csrf token missing or incorrect的解决办法

from django.views.decorators.csrf import csrf_exempt

@csrf_exempt
def post_process(request):
    ...

来源:

https://stackoverflow.com/questions/6506897/csrf-token-missing-or-incorrect-while-post-parameter-via-ajax-in-django

你可能感兴趣的:(django+ajax报csrf token missing or incorrect的解决办法)