Question : axios django
Answered by : ahmed-shimul
axios.defaults.xsrfHeaderName = "X-CSRFTOKEN";
axios.defaults.xsrfCookieName = "csrftoken";
Source : https://stackoverflow.com/questions/39254562/csrf-with-django-reactredux-using-axios | Last Update : Tue, 26 Apr 22
Question : axios django post
Answered by : ahmed-shimul
import json
json.loads(request.body.decode('utf-8'))
Source : https://stackoverflow.com/questions/49430161/how-do-i-post-to-django-using-axios | Last Update : Tue, 26 Apr 22