Skip to content

@csrf_exempt is dangerous and unnecessary #3

Description

@tarkatronic

Using the csrf_exempt decorator opens up these views to potential security issues, and Django's CSRF protection can be easily used with AJAX requests. I've got it up and running right now, all I had to do was also include this file in my scripts:

https://github.com/miki725/Django-jQuery-File-Uploader-Integration-demo/blob/master/static/js/jquery_fix_csrf.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions