1 2 3 | class IgnoreCsrfMiddleware(object):
def process_request(self, request):
request.csrf_processing_done = True
|
More like this
- CSRF this! by oggy 3 years, 8 months ago
- Add CSRF token to templates by coleifer 10 months, 3 weeks ago
- Django csrf_token Template Tag Fix by Reustle 1 year, 9 months ago
- csrf_token for mako by damd 1 year, 12 months ago
- Manual CSRF check for Django Facebook canvas applications by krvss 8 months, 2 weeks ago
Comments
Works great - to clarify you add it like so (in settings.py):
#
If you are going to ignore the csrf why adding the middleware in the first place?
#