Since you are not using forms currently, you can exempt from the csrf

from django.views.decorators.csrf import csrf_exempt


@csrf_exempt
def Browse(request):

    data = [{'name': 'Peter', 'email': '[email protected]'},
            {'name': 'Julia', 'email': '[email protected]'}]

    return JsonResponse(data, safe=False)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top