This repository has been archived by the owner on Nov 10, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The raw data form broke with recent Django REST Framework changes in how non-POSTs are handled. This fixes it in DEBUG mode. However, the code might not work in production, since the code is trying to pull the CSRF token out of the headers. However, production uses CSRF_COOKIE_HTTPONLY, which means JS can't access it. More testing, and alternate code, is required.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
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