1
1
mirror of https://github.com/encode/django-rest-framework.git synced 2025-06-03 21:23:24 +03:00
django-rest-framework/docs/topics/csrf.md
2012-10-21 16:34:07 +02:00

615 B

Working with AJAX and CSRF

"Take a close look at possible CSRF / XSRF vulnerabilities on your own websites. They're the worst kind of vulnerability -- very easy to exploit by attackers, yet not so intuitively easy to understand for software developers, at least until you've been bitten by one."

Jeff Atwood

  • Explain need to add CSRF token to AJAX requests.
  • Explain deferred CSRF style used by REST framework
  • Why you should use Django's standard login/logout views, and not REST framework view