Django, Axios and CSRF token
Briefly

The server sends the HTML template, the HTML template has a Vue component and then Vue takes place, mounts on it and do its things.
What is the meaning of having two separate settings for xsrf handling while you can manually config this in the headers objects?
The form does not include a hidden input field named csrftoken because we want to pass it to the server using only the HTTP headers.
The csrf token is passed to the Vue component as a prop. So, the component knows the token.
Read at Alone Djangonaut
[
|
]