Add csrf token header axios
This commit is contained in:
parent
cae894dfdd
commit
586ae29549
@ -54,6 +54,8 @@ if (Auth.authenticated()) {
|
||||
};
|
||||
console.log(window.axios.defaults.headers.common)
|
||||
}
|
||||
axios.defaults.xsrfCookieName = 'csrftoken';
|
||||
axios.defaults.xsrfHeaderName = 'HTTP_X_CSRFTOKEN';
|
||||
|
||||
/* eslint-disable no-new */
|
||||
new Vue({
|
||||
|
||||
Reference in New Issue
Block a user