Created
December 14, 2012 13:40
-
-
Save tomchristie/4285537 to your computer and use it in GitHub Desktop.
REST framework. CSRF
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[13:33:03] <mikeywaites> whats the prefered way to disable csrf for resources? | |
[13:33:09] <mikeywaites> in v2.x | |
[13:33:47] <mikeywaites> ping tomchristie | |
[13:36:06] <tomchristie> mikeywaites: This needs docs. | |
[13:36:25] <tomchristie> If your using SessionAuthentication answer is dont do that. | |
[13:36:38] <tomchristie> If you using any other auth, csrf wont apply | |
[13:36:54] <tomchristie> Django docs have a section on using CSRF with AJAX | |
[13:37:23] <tomchristie> If you really want to be bad best answer would be use a custom auth | |
[13:37:37] <tomchristie> Crib from the session auth, and just drop the bit that performs CSRF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment