This is an educational project, not for production. I wasn\'t intending to have user logins as part of this.
Can I make POST calls to Django with a CSRF token withou
There is actually a really easy way to do this.
Add axios.defaults.xsrfHeaderName = "X-CSRFToken"; to your app config and then set CSRF_COOKIE_NAME = "XSRF-TOKEN" in your settings.py file. Works like a charm.
axios.defaults.xsrfHeaderName = "X-CSRFToken";
CSRF_COOKIE_NAME = "XSRF-TOKEN"