Opened 4 years ago

Closed 4 years ago

#24217 closed Uncategorized (fixed)

csrf_exempt is not working with django 1.7

Reported by: Dhruv Agarwal Owned by: nobody
Component: Uncategorized Version: 1.7
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

Earlier i was using django 1.6.1 and in my code i was using csrf_exempt decorator on some of my views.
Now i upgraded to django 1.7.1 but now csrf_exempt is not working.
It would be great if someone could tell me a solution for this

Change History (2)

comment:1 Changed 4 years ago by Ng Zhi An

I just pulled 1.7.1 and tried it, but csrf_exempt works for me.

  1. I created a simple app that has a homepage with a form made up of a text input and a submit button
  2. without csrf_exempt, hitting submit brings me to the 403 Forbidden page
  3. with csrf_exempt, my submission went fine!

Appreciate more details regarding this, e.g. source or something, or if someone else verifies this problem.

comment:2 Changed 4 years ago by Dhruv Agarwal

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