|
|
@ -13,10 +13,14 @@ export const getLinks = response => {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
let csrfHeader = {};
|
|
|
|
let csrfHeader = {};
|
|
|
|
|
|
|
|
|
|
|
|
function setCSRFHeader() {
|
|
|
|
function setCSRFHeader() {
|
|
|
|
const csrfToken = document.querySelector('meta[name=csrf-token]').content;
|
|
|
|
const csrfToken = document.querySelector('meta[name=csrf-token]');
|
|
|
|
csrfHeader['X-CSRF-Token'] = csrfToken;
|
|
|
|
if (csrfToken) {
|
|
|
|
|
|
|
|
csrfHeader['X-CSRF-Token'] = csrfToken.content;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ready(setCSRFHeader);
|
|
|
|
ready(setCSRFHeader);
|
|
|
|
|
|
|
|
|
|
|
|
export default getState => axios.create({
|
|
|
|
export default getState => axios.create({
|
|
|
|