django-rest-framework/docs/topics/csrf.md

13 lines
615 B
Markdown
Raw Normal View History

2012-09-01 23:26:27 +04:00
# 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][cite]
* Explain need to add CSRF token to AJAX requests.
2012-10-21 18:34:07 +04:00
* Explain deferred CSRF style used by REST framework
2012-09-01 23:26:27 +04:00
* Why you should use Django's standard login/logout views, and not REST framework view
2012-10-21 18:34:07 +04:00
[cite]: http://www.codinghorror.com/blog/2008/10/preventing-csrf-and-xsrf-attacks.html