the view is
@api_view(['POST'])
def example(request):
return Response({'usernmae':
request.user.username},status=status.HTTP_200_OK)
when i print the content of response object it shows
b'{"detail":"CSRF Failed: CSRF cookie not set."}'
it happens only when i set sessionid cookie in client
On Sep 18, 2016 12:56 PM, "sabari rangan" wrote:
>
> i am using django.contrib.auth module for authentication system in my
django rest framework app, when i post data i couldn't able to authenticate
the user it return 403 response code . but during get request it works
fine. i have attached the se
2 matches
Mail list logo