Opened 12 years ago

Closed 12 years ago

#20391 closed Uncategorized (invalid)

CSRF

Reported by: anonymous Owned by: nobody
Component: Uncategorized Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have the following view:

@api_view(POST)
@csrf_exempt
def user_login(request):

that adheres to the django rest framework.

How can I make this view csrf exempt?

I am trying to do API calls via iphone.

Thanks.

Change History (1)

comment:1 by Tim Graham, 12 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top