Disabling Django CSRF protection for some views

from django.views.decorators.csrf import csrf_exempt

@csrf_exempt
def my_view:
return Httpresponse(“hello world”)

No related posts.

Yorum Yazın