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
The "easy way" almost worked for me. This seems to work:
import axios from 'axios'; axios.defaults.xsrfHeaderName = "X-CSRFTOKEN"; axios.defaults.xsrfCookieName = "XCSRF-TOKEN";
And in the settings.py file:
CSRF_COOKIE_NAME = "XCSRF-TOKEN"