and that is all. Last modification have those replaces call because Django documentation say:
As with other HTTP headers in request.META, the header name received from the server is normalized by converting all characters to uppercase, replacing any hyphens with underscores, and adding an 'HTTP_' prefix to the name. For example, if your client sends a 'X-XSRF-TOKEN' header, the setting should be 'HTTP_X_XSRF_TOKEN'.
ps. great job guys! Nice module.
The text was updated successfully, but these errors were encountered:
changed the title
rest_framework api view not working when CSRF_HEADER_NAME params is not defaultAug 15, 2016