10👍
Simply, set the below settings. Nothing else is required.
axios.defaults.xsrfCookieName = 'csrftoken';
axios.defaults.xsrfHeaderName = 'X-CSRFToken';
Source:stackexchange.com
10👍
Simply, set the below settings. Nothing else is required.
axios.defaults.xsrfCookieName = 'csrftoken';
axios.defaults.xsrfHeaderName = 'X-CSRFToken';